Spaces:
Runtime error
Runtime error
J.P. Pérez Tejada commited on
Commit ·
aff5634
1
Parent(s): 2f70586
Add import Path
Browse files- gnosis/agent.py +2 -1
gnosis/agent.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
"""An Langchain Agent that uses ChromaDB as a query tool"""
|
| 2 |
import os
|
|
|
|
| 3 |
|
| 4 |
from langchain.agents import AgentType, initialize_agent, load_tools
|
| 5 |
from langchain.tools import Tool
|
| 6 |
-
from langchain.schema import SystemMessage
|
| 7 |
from gnosis.search import Search
|
| 8 |
|
| 9 |
def load_system_prompt() -> SystemMessage:
|
|
|
|
| 1 |
"""An Langchain Agent that uses ChromaDB as a query tool"""
|
| 2 |
import os
|
| 3 |
+
from pathlib import Path
|
| 4 |
|
| 5 |
from langchain.agents import AgentType, initialize_agent, load_tools
|
| 6 |
from langchain.tools import Tool
|
| 7 |
+
from langchain.schema import SystemMessage
|
| 8 |
from gnosis.search import Search
|
| 9 |
|
| 10 |
def load_system_prompt() -> SystemMessage:
|