Files
Anton_wireframe/app/__pycache__/main.cpython-312.pyc
T

32 lines
3.3 KiB
Plaintext
Raw Normal View History

Ë
˸hsãóddlZddlZddlmZmZddlmZmZddl m
Z
m Z m Z ddl
mZddlmZddlmZddlmZe
«Ze«Gd „d
e«Zej/d «d «Zej3d
dgee¬«e d«fdede fd«Zej3dedg¬«dedefd«Zej=ej>«ej=ej>«e dk(rddl!Z!e!jDdddd¬«yy)éN)Ú companiesÚ investors)Ú
db_dependencyÚ
init_database)ÚFastAPIÚFileÚ
UploadFile)Ú InvestorList)Ú BaseModel)ÚInvestorProcessor)ÚQueryProcessorcó,eZdZUeed<Gdd«Zy)Ú QueryRequestÚquestioncóeZdZdddiiZy)úQueryRequest.ConfigÚexamplerzQShow me growth stage fintech investors in the US with check sizes over $1 millionN)Ú__name__Ú
__module__Ú __qualname__Újson_schema_extra©óú?/home/oluwasanmi/Documents/Work/MKD/anton_wireframe/app/main.pyÚConfigrsà ØÐð
ÑrrN)rrrÚstrÚ__annotations__rrrrrrs؃M÷
ò
rrú/có
ddiS)HelloÚWorldrrrrÚhealthr"s
à  Ðrz
/parse-csvz
CSV Upload)ÚtagsÚresponse_model.ÚdbÚfilecƒó@K|j«ƒd{}tjtj|j d«««}t
|¬«}|j|«ƒd{}|Dcgc]}|j«Œc}S7Œ~7Œ$cc}w­w)Nzutf-8©Ú sql_session) ÚreadÚpdÚread_csvÚioÚStringIOÚdecoder Ú process_csvÚ
model_dump)r%r&ÚcontentÚdfÚ processorÚresultsÚrs rÚ parse_csvr7!s~èø€ð—I‘I“K×€GÜ ”R—[‘[ §¡°Ó!8Ó9Ó :€Bô"¨bÔ1€IØ×)¨"Ó-×-€Gð%,Ö ,˜qˆAL‰L  øð
.úò -ùs4BB—ABÁ2BÁ3BÁ;BÂBÂBÂBz/queryÚQuerying)r$r#Úrequestcƒó\Kt|¬«}|j|j«}|S­w)zÿ
Query investors using natural language.
Supports queries like:
- "Show me seed stage investors"
- "Find fintech investors in Silicon Valley"
- "Growth stage investors with $5M+ check sizes"
- "Healthcare investors in Europe"
r()r
Ú
process_queryr)r%r9r4r5s rÚquery_investorsr</s-èø€ô¨2Ô.€IØ×% g×&6Ñ&6Ó7€GØ €Nùs*,Ú__main__zmain:appÚ localhosti@T)ÚappÚhostÚportÚreload)#r-Úpandasr+ÚapirrÚdb.dbrrÚfastapirrr Ú