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

30 lines
3.9 KiB
Plaintext
Raw Normal View History

Ë
i¹×h©ãóŠddlZddlZddlmZmZmZddlmZddl m
Z
m Z m Z m
Z
ddlmZddlmZmZmZddlmZddlmZdd lmZe«d
Ze«e
«ZGd d e«Zej;d
«d«Zej?ddge e!¬«e d«e d«fdede
de"fd«Z#ej?dedg¬«defd«Z$ejKejL«ejKejL«ejKejL«e'dk(rddl(Z(e(jRdddd ¬!«yy)"éN)ÚBaseÚ
db_dependencyÚengine)Ú load_dotenv)ÚFastAPIÚFileÚFormÚ
UploadFile)Ú BaseModel)Ú companiesÚ investorsÚprojects)Ú InvestorList)ÚInvestorProcessor)ÚQueryProcessorcóLtjjt¬«y)z.Initialize the database by creating all tables)ÚbindN)rÚmetadataÚ
create_allr©óú?/home/oluwasanmi/Documents/Work/MKD/anton_wireframe/app/main.pyÚ
init_databasersä‡MM×Ѥ&ÐÕ)rcó,eZdZUeed<Gdd«Zy)Ú QueryRequestÚquestioncóeZdZdddiiZy)úQueryRequest.ConfigÚexamplerzDFind me deep tech investors that do deals in Europe under 5 million.N)Ú__name__Ú
2025-09-25 17:00:38 +01:00
__module__Ú __qualname__Újson_schema_extrarrrÚConfigrsà ØÐð
Ñrr$N)r r!r"ÚstrÚ__annotations__r$rrrrrs؃M÷
ò
rrú/có
ddiS)HelloÚWorldrrrrÚhealthr+&s
à  Ðrz
/parse-csvz
CSV Upload)ÚtagsÚresponse_model.ÚdbÚfileÚ is_investorcƒó~K|j«ƒd{}tjtj|j d«««}t
«}|dk(r|j|«ƒd{}n|j|«ƒd{}|Dcgc]}|j«Œc}S7Œ›7Œ>7Œ&cc}w­w)Nzutf-8é)
ÚreadÚpdÚread_csvÚioÚStringIOÚdecoderÚparse_investorsÚparse_companiesÚ
model_dump)r.r/r0ÚcontentÚdfÚ processorÚresultsÚrs rÚ parse_csvrA+sèø€ð
—I‘I“K×€GÜ ”R—[‘[ §¡°Ó!8Ó9Ó :€Bô#€IàØ!×1°"Ó5×5‰à!×1°"Ó5×5ˆð%,Ö ,˜qˆAL‰L  øð6øà5úò -ùsFB=B2—AB=Á5B4Á6B=ÂB6ÂB=ÂB8Â/B=Â4B=Â6B=Â8B=z/queryÚQuerying)r-r,ÚrequestcƒóXKt«}|j|j«}|S­w)zÿ
Query investors using natural language.
Supports queries like:
- "Show me seed stage investors"