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

27 lines
3.5 KiB
Plaintext
Raw Normal View History

Ë
2025-09-25 17:00:38 +01:00
TaÕhûãóFddlZddlZddlmZmZddlmZddlm Z m
Z
2025-09-25 17:00:38 +01:00
m Z m Z ddl
mZddlmZmZddlmZddlmZdd lmZe«e«e «ZGd
d e«Zej5d «d
«Zej9ddgee¬«e
d«e d«fdede defd«Z ej9dedg¬«defd«Z!ejEejF«ejEejF«e$dk(rddl%Z%e%jLdddd¬ «yy)!éN)Ú
db_dependencyÚ
init_database)Ú load_dotenv)ÚFastAPIÚFileÚFormÚ
2025-09-25 17:00:38 +01:00
UploadFile)Ú BaseModel)Ú companiesÚ investors)Ú InvestorList)ÚInvestorProcessor)ÚQueryProcessorcó,eZdZUeed<Gdd«Zy)Ú QueryRequestÚquestioncóeZdZdddiiZy)úQueryRequest.ConfigÚexamplerzDFind me deep tech investors that do deals in Europe under 5 million.N)Ú__name__Ú
__module__Ú __qualname__Újson_schema_extra©óúA/home/oluwasanmi/Documents/Work/MKD/anton_wirefram_v2/app/main.pyÚConfigrsà ØÐð
ÑrrN)rrrÚstrÚ__annotations__rrrrrrs؃M÷
2025-09-25 17:00:38 +01:00
ò
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(r)ÚcontentÚdfÚ processorÚresultsÚrs rÚ parse_csvr:$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.
2025-09-25 17:00:38 +01:00
Supports queries like:
- "Show me seed stage investors"
2025-09-25 17:00:38 +01:00
- "Find fintech investors in Silicon Valley"