Files
Anton_wireframe/app/services/__pycache__/querying.cpython-312.pyc
T

25 lines
5.3 KiB
Plaintext
Raw Normal View History

Ë
ÎùähêãóèddlZddlmZddlmZmZddlmZddlm Z ddl
2025-09-25 17:00:38 +01:00
m Z ddl m
Z
ddlmZdd lmZdd
lmZmZdd lmZe j.d «Ze
j2e«ZGd
d«Zy)éN)ÚList)Ú DATABASE_URLÚget_db)Ú
InvestorTable)Úhub)ÚSQLDatabaseToolkit)Ú SQLDatabase)Ú
2025-09-25 17:00:38 +01:00
ChatOpenAI)Úcreate_react_agent)Ú InvestorDataÚ InvestorList)Ú selectinloadz$langchain-ai/sql-agent-system-promptcóNeZdZdZdedefdZdedeefdZ deedefdZ
y )
ÚQueryProcessorcóBttjd«ddd¬«|_t t
2025-09-25 17:00:38 +01:00
|j¬«|_tjdd¬ «d
zd zd zd
z}t|j|j j«|¬«|_ y)OPENROUTER_API_KEYzhttps://openrouter.ai/api/v1zopenai/gpt-4o-minir)Úapi_keyÚbase_urlÚmodelÚ temperature)ÚdbÚllmÚSQLiteé)ÚdialectÚtop_kz^
2025-09-25 17:00:38 +01:00
IMPORTANT: You must ONLY return the investor IDs (id field) that match the user's criteria. z<Do NOT return any other information, explanations, or data. z^Your response should be ONLY a comma-separated list of numbers representing the investor IDs. zExample format: 1, 5, 12, 23)rÚtoolsÚprompt) r
ÚosÚgetenvrrrÚtoolkitÚprompt_templateÚformatr Ú get_toolsÚagent)ÚselfÚsystem_message_updateds úL/home/oluwasanmi/Documents/Work/MKD/anton_wireframe/app/services/querying.pyÚ__init__zQueryProcessor.__init__ÜÜ—Iô 
ˆŒô *¬R°T·X±XÔ>ˆŒ ô
× "¨8¸ 
qà
Mðoñ
2025-09-25 17:00:38 +01:00
oð
 ô—(‘(Ø—,‘,×
ˆ