OpenHands
OpenHands copied to clipboard
Invalid JSON error and infinite task solution (with Ollama?)
Describe the bug
- Invalid JSON errors
- Infinite/looping task solution, after task is solved/complete
Steps to Reproduce
- Run Ollama Server
- sudo uvicorn opendevin.server.listen:app --port 3000 --host 0.0.0.0
- npm run start -- --port 3001 --host
- Start a simple task with OpenDevin: print the output of the hello_world.sh bash script
env variables:
LLM_EMBEDDING_MODEL="local"
WORKSPACE_DIR="/ssd1tb/workspace"
LLM_BASE_URL="http://10.7.0.18:11434"
OPENAI_API_KEY=""
LLM_MODEL="ollama_chat/mixtral:instruct"
Expected behavior
OpenDevin checks the script, realises it contains 'echo "hello world"' and runs it, or just prints "hello world"
Actual behavior
Additional context
INFO: Started server process [1524617]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:3000 (Press CTRL+C to quit)
INFO: ('10.7.0.20', 51387) - "WebSocket /ws" [accepted]
INFO: connection open
==============
STEP 0
AGENT ERROR:
Invalid json output: {
"action": "think",
"args": {
"thought": "I should check if the hello\_world.sh script already exists."
}
}
{
"action": "read",
"args": {
"path": "hello\_world.sh"
}
}
{
"action": "think",
"args": {
"thought": "If the file doesn't exist, I'll need to create it."
}
}
{
"action": "write",
"args": {
"path": "hello\_world.sh",
"contents": "#!/bin/bash\necho 'A short story about frogs:\n\nOnce upon a time, there was a group of happy little frogs living in a pond.\nOne day, the wise old frog decided to tell them a story...'\n"
}
}
{
"action": "run",
"args": {
"command": "chmod +x hello\_world.sh"
}
}
{
"action": "think",
"args": {
"thought": "Now the script should be able to print a short story about frogs."
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 212, in parse_result
return parse_json_markdown(text)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 157, in parse_json_markdown
parsed = parser(json_str)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 125, in parse_partial_json
return json.loads(s, strict=strict)
File "/usr/lib/python3.10/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 4 column 40 (char 70)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ssd1tb/project/OpenDevin/opendevin/controller/__init__.py", line 85, in step
action = self.agent.step(state)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/__init__.py", line 174, in step
action = prompts.parse_action_response(action_resp)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/utils/prompts.py", line 167, in parse_action_response
action_dict = parser.parse(response)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 218, in parse
return self.parse_result([Generation(text=text)])
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 215, in parse_result
raise OutputParserException(msg, llm_output=text) from e
langchain_core.exceptions.OutputParserException: Invalid json output: {
"action": "think",
"args": {
"thought": "I should check if the hello\_world.sh script already exists."
}
}
{
"action": "read",
"args": {
"path": "hello\_world.sh"
}
}
{
"action": "think",
"args": {
"thought": "If the file doesn't exist, I'll need to create it."
}
}
{
"action": "write",
"args": {
"path": "hello\_world.sh",
"contents": "#!/bin/bash\necho 'A short story about frogs:\n\nOnce upon a time, there was a group of happy little frogs living in a pond.\nOne day, the wise old frog decided to tell them a story...'\n"
}
}
{
"action": "run",
"args": {
"command": "chmod +x hello\_world.sh"
}
}
{
"action": "think",
"args": {
"thought": "Now the script should be able to print a short story about frogs."
}
}
OBSERVATION:
Invalid json output: {
"action": "think",
"args": {
"thought": "I should check if the hello\_world.sh script already exists."
}
}
{
"action": "read",
"args": {
"path": "hello\_world.sh"
}
}
{
"action": "think",
"args": {
"thought": "If the file doesn't exist, I'll need to create it."
}
}
{
"action": "write",
"args": {
"path": "hello\_world.sh",
"contents": "#!/bin/bash\necho 'A short story about frogs:\n\nOnce upon a time, there was a group of happy little frogs living in a pond.\nOne day, the wise old frog decided to tell them a story...'\n"
}
}
{
"action": "run",
"args": {
"command": "chmod +x hello\_world.sh"
}
}
{
"action": "think",
"args": {
"thought": "Now the script should be able to print a short story about frogs."
}
}
==============
STEP 1
ACTION:
AgentThinkAction(thought='I should check if the hello_world.sh script already exists.', runnable=False)
==============
STEP 2
^C
ACTION:
FileReadAction(path='hello_world.sh', base_path='')
INFO: Shutting down
FileReadAction(path='hello_world.sh', base_path='../../workspace')
OBSERVATION:
#!/bin/bash
echo 'Hello World'
Error sending data to client
Client websocket disconnected (1012, None)
INFO: connection closed
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [1524617]
mack@compute:/ssd1tb/project/OpenDevin$ sudo uvicorn opendevin.server.listen:app --port 3000 --host 0.0.0.0
/usr/lib/python3/dist-packages/paramiko/transport.py:237: CryptographyDeprecationWarning: Blowfish has been deprecated and will be removed in a future release
"class": algorithms.Blowfish,
/usr/lib/python3/dist-packages/scipy/__init__.py:146: UserWarning: A NumPy version >=1.17.3 and <1.25.0 is required for this version of SciPy (detected version 1.26.4
warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"
INFO: Started server process [1534730]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:3000 (Press CTRL+C to quit)
INFO: ('10.7.0.20', 51537) - "WebSocket /ws" [accepted]
INFO: connection open
==============
STEP 0
AGENT ERROR:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 212, in parse_result
return parse_json_markdown(text)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 157, in parse_json_markdown
parsed = parser(json_str)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 125, in parse_partial_json
return json.loads(s, strict=strict)
File "/usr/lib/python3.10/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 4 column 41 (char 71)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ssd1tb/project/OpenDevin/opendevin/controller/__init__.py", line 85, in step
action = self.agent.step(state)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/__init__.py", line 174, in step
action = prompts.parse_action_response(action_resp)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/utils/prompts.py", line 167, in parse_action_response
action_dict = parser.parse(response)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 218, in parse
return self.parse_result([Generation(text=text)])
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 215, in parse_result
raise OutputParserException(msg, llm_output=text) from e
langchain_core.exceptions.OutputParserException: Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
OBSERVATION:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
==============
STEP 1
AGENT ERROR:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 212, in parse_result
return parse_json_markdown(text)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 157, in parse_json_markdown
parsed = parser(json_str)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 125, in parse_partial_json
return json.loads(s, strict=strict)
File "/usr/lib/python3.10/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 4 column 41 (char 71)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ssd1tb/project/OpenDevin/opendevin/controller/__init__.py", line 85, in step
action = self.agent.step(state)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/__init__.py", line 174, in step
action = prompts.parse_action_response(action_resp)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/utils/prompts.py", line 167, in parse_action_response
action_dict = parser.parse(response)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 218, in parse
return self.parse_result([Generation(text=text)])
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 215, in parse_result
raise OutputParserException(msg, llm_output=text) from e
langchain_core.exceptions.OutputParserException: Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
OBSERVATION:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
==============
STEP 2
AGENT ERROR:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 212, in parse_result
return parse_json_markdown(text)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 157, in parse_json_markdown
parsed = parser(json_str)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 125, in parse_partial_json
return json.loads(s, strict=strict)
File "/usr/lib/python3.10/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 4 column 41 (char 71)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ssd1tb/project/OpenDevin/opendevin/controller/__init__.py", line 85, in step
action = self.agent.step(state)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/__init__.py", line 174, in step
action = prompts.parse_action_response(action_resp)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/utils/prompts.py", line 167, in parse_action_response
action_dict = parser.parse(response)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 218, in parse
return self.parse_result([Generation(text=text)])
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 215, in parse_result
raise OutputParserException(msg, llm_output=text) from e
langchain_core.exceptions.OutputParserException: Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
OBSERVATION:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
==============
STEP 3
AGENT ERROR:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 212, in parse_result
return parse_json_markdown(text)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 157, in parse_json_markdown
parsed = parser(json_str)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 125, in parse_partial_json
return json.loads(s, strict=strict)
File "/usr/lib/python3.10/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 4 column 41 (char 71)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ssd1tb/project/OpenDevin/opendevin/controller/__init__.py", line 85, in step
action = self.agent.step(state)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/__init__.py", line 174, in step
action = prompts.parse_action_response(action_resp)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/utils/prompts.py", line 167, in parse_action_response
action_dict = parser.parse(response)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 218, in parse
return self.parse_result([Generation(text=text)])
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 215, in parse_result
raise OutputParserException(msg, llm_output=text) from e
langchain_core.exceptions.OutputParserException: Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
OBSERVATION:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
==============
STEP 4
AGENT ERROR:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 212, in parse_result
return parse_json_markdown(text)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 157, in parse_json_markdown
parsed = parser(json_str)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 125, in parse_partial_json
return json.loads(s, strict=strict)
File "/usr/lib/python3.10/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 4 column 41 (char 71)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ssd1tb/project/OpenDevin/opendevin/controller/__init__.py", line 85, in step
action = self.agent.step(state)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/__init__.py", line 174, in step
action = prompts.parse_action_response(action_resp)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/utils/prompts.py", line 167, in parse_action_response
action_dict = parser.parse(response)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 218, in parse
return self.parse_result([Generation(text=text)])
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 215, in parse_result
raise OutputParserException(msg, llm_output=text) from e
langchain_core.exceptions.OutputParserException: Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
OBSERVATION:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
==============
STEP 5
^C
ACTION:
AgentThinkAction(thought='I should check if the hello_world.sh script exists in this directory. I can do that by running `ls` and looking for the script in the output.', runnable=False)
INFO: Shutting down
Error sending data to client
Client websocket disconnected (1012, None)
INFO: connection closed
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [1534730]
mack@compute:/ssd1tb/project/OpenDevin$ sudo python -m pip install -r requirements.txt
Requirement already satisfied: datasets in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 1)) (2.18.0)
Requirement already satisfied: pandas in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 2)) (2.2.0)
Requirement already satisfied: litellm in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 3)) (1.34.6)
Requirement already satisfied: termcolor in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 4)) (2.4.0)
Requirement already satisfied: seaborn in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 5)) (0.13.2)
Requirement already satisfied: docker in /usr/lib/python3/dist-packages (from -r requirements.txt (line 6)) (5.0.3)
Requirement already satisfied: fastapi in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 7)) (0.109.2)
Requirement already satisfied: ruff in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 9)) (0.3.4)
Requirement already satisfied: mypy in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 10)) (1.9.0)
Requirement already satisfied: langchain in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 13)) (0.1.8)
Requirement already satisfied: langchain-core in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 14)) (0.1.25)
Requirement already satisfied: langchain-community in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 15)) (0.0.21)
Requirement already satisfied: llama-index in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 16)) (0.10.24)
Requirement already satisfied: llama-index-vector-stores-chroma in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 17)) (0.1.6)
Requirement already satisfied: chromadb in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 18)) (0.4.22)
Requirement already satisfied: llama-index-embeddings-huggingface in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 19)) (0.2.0)
Requirement already satisfied: llama-index-embeddings-azure-openai in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 20)) (0.1.6)
Requirement already satisfied: llama-index-embeddings-ollama in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 21)) (0.1.2)
Requirement already satisfied: uvicorn[standard] in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 8)) (0.27.1)
Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from datasets->-r requirements.txt (line 1)) (3.13.1)
Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/dist-packages (from datasets->-r requirements.txt (line 1)) (1.26.4)
Requirement already satisfied: pyarrow>=12.0.0 in /usr/local/lib/python3.10/dist-packages (from datasets->-r requirements.txt (line 1)) (15.0.0)
Requirement already satisfied: pyarrow-hotfix in /usr/local/lib/python3.10/dist-packages (from datasets->-r requirements.txt (line 1)) (0.6)
Requirement already satisfied: dill<0.3.9,>=0.3.0 in /usr/local/lib/python3.10/dist-packages (from datasets->-r requirements.txt (line 1)) (0.3.8)
Requirement already satisfied: requests>=2.19.0 in /usr/local/lib/python3.10/dist-packages (from datasets->-r requirements.txt (line 1)) (2.31.0)
Requirement already satisfied: tqdm>=4.62.1 in /usr/local/lib/python3.10/dist-packages (from datasets->-r requirements.txt (line 1)) (4.66.2)
Requirement already satisfied: xxhash in /usr/local/lib/python3.10/dist-packages (from datasets->-r requirements.txt (line 1)) (3.4.1)
Requirement already satisfied: multiprocess in /usr/local/lib/python3.10/dist-packages (from datasets->-r requirements.txt (line 1)) (0.70.16)
Requirement already satisfied: fsspec<=2024.2.0,>=2023.1.0 in /usr/local/lib/python3.10/dist-packages (from fsspec[http]<=2024.2.0,>=2023.1.0->datasets->-r requirements.txt (line 1)) (2024.2.0)
Requirement already satisfied: aiohttp in /usr/local/lib/python3.10/dist-packages (from datasets->-r requirements.txt (line 1)) (3.9.3)
Requirement already satisfied: huggingface-hub>=0.19.4 in /usr/local/lib/python3.10/dist-packages (from datasets->-r requirements.txt (line 1)) (0.20.3)
Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from datasets->-r requirements.txt (line 1)) (23.2)
Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from datasets->-r requirements.txt (line 1)) (6.0.1)
Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.10/dist-packages (from pandas->-r requirements.txt (line 2)) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /usr/lib/python3/dist-packages (from pandas->-r requirements.txt (line 2)) (2022.1)
Requirement already satisfied: tzdata>=2022.7 in /usr/local/lib/python3.10/dist-packages (from pandas->-r requirements.txt (line 2)) (2024.1)
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from litellm->-r requirements.txt (line 3)) (8.0.3)
Requirement already satisfied: importlib-metadata>=6.8.0 in /usr/local/lib/python3.10/dist-packages (from litellm->-r requirements.txt (line 3)) (6.11.0)
Requirement already satisfied: jinja2<4.0.0,>=3.1.2 in /usr/local/lib/python3.10/dist-packages (from litellm->-r requirements.txt (line 3)) (3.1.3)
Requirement already satisfied: openai>=1.0.0 in /usr/local/lib/python3.10/dist-packages (from litellm->-r requirements.txt (line 3)) (1.14.3)
Requirement already satisfied: python-dotenv>=0.2.0 in /usr/local/lib/python3.10/dist-packages (from litellm->-r requirements.txt (line 3)) (1.0.1)
Requirement already satisfied: tiktoken>=0.4.0 in /usr/local/lib/python3.10/dist-packages (from litellm->-r requirements.txt (line 3)) (0.6.0)
Requirement already satisfied: tokenizers in /usr/local/lib/python3.10/dist-packages (from litellm->-r requirements.txt (line 3)) (0.15.2)
Requirement already satisfied: matplotlib!=3.6.1,>=3.4 in /usr/lib/python3/dist-packages (from seaborn->-r requirements.txt (line 5)) (3.5.1)
Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4 in /usr/local/lib/python3.10/dist-packages (from fastapi->-r requirements.txt (line 7)) (2.6.1)
Requirement already satisfied: starlette<0.37.0,>=0.36.3 in /usr/local/lib/python3.10/dist-packages (from fastapi->-r requirements.txt (line 7)) (0.36.3)
Requirement already satisfied: typing-extensions>=4.8.0 in /usr/local/lib/python3.10/dist-packages (from fastapi->-r requirements.txt (line 7)) (4.9.0)
Requirement already satisfied: h11>=0.8 in /usr/local/lib/python3.10/dist-packages (from uvicorn[standard]->-r requirements.txt (line 8)) (0.14.0)
Requirement already satisfied: httptools>=0.5.0 in /usr/local/lib/python3.10/dist-packages (from uvicorn[standard]->-r requirements.txt (line 8)) (0.6.1)
Requirement already satisfied: uvloop!=0.15.0,!=0.15.1,>=0.14.0 in /usr/local/lib/python3.10/dist-packages (from uvicorn[standard]->-r requirements.txt (line 8)) (0.19.0)
Requirement already satisfied: watchfiles>=0.13 in /usr/local/lib/python3.10/dist-packages (from uvicorn[standard]->-r requirements.txt (line 8)) (0.21.0)
Requirement already satisfied: websockets>=10.4 in /usr/local/lib/python3.10/dist-packages (from uvicorn[standard]->-r requirements.txt (line 8)) (12.0)
Requirement already satisfied: mypy-extensions>=1.0.0 in /usr/local/lib/python3.10/dist-packages (from mypy->-r requirements.txt (line 10)) (1.0.0)
Requirement already satisfied: tomli>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from mypy->-r requirements.txt (line 10)) (2.0.1)
Requirement already satisfied: SQLAlchemy<3,>=1.4 in /usr/local/lib/python3.10/dist-packages (from langchain->-r requirements.txt (line 13)) (2.0.27)
Requirement already satisfied: async-timeout<5.0.0,>=4.0.0 in /usr/local/lib/python3.10/dist-packages (from langchain->-r requirements.txt (line 13)) (4.0.3)
Requirement already satisfied: dataclasses-json<0.7,>=0.5.7 in /usr/local/lib/python3.10/dist-packages (from langchain->-r requirements.txt (line 13)) (0.6.4)
Requirement already satisfied: jsonpatch<2.0,>=1.33 in /usr/local/lib/python3.10/dist-packages (from langchain->-r requirements.txt (line 13)) (1.33)
Requirement already satisfied: langsmith<0.2.0,>=0.1.0 in /usr/local/lib/python3.10/dist-packages (from langchain->-r requirements.txt (line 13)) (0.1.5)
Requirement already satisfied: tenacity<9.0.0,>=8.1.0 in /usr/local/lib/python3.10/dist-packages (from langchain->-r requirements.txt (line 13)) (8.2.3)
Requirement already satisfied: anyio<5,>=3 in /usr/local/lib/python3.10/dist-packages (from langchain-core->-r requirements.txt (line 14)) (4.3.0)
Requirement already satisfied: llama-index-agent-openai<0.2.0,>=0.1.4 in /usr/local/lib/python3.10/dist-packages (from llama-index->-r requirements.txt (line 16)) (0.1.7)
Requirement already satisfied: llama-index-cli<0.2.0,>=0.1.2 in /usr/local/lib/python3.10/dist-packages (from llama-index->-r requirements.txt (line 16)) (0.1.11)
Requirement already satisfied: llama-index-core<0.11.0,>=0.10.24 in /usr/local/lib/python3.10/dist-packages (from llama-index->-r requirements.txt (line 16)) (0.10.24.post1)
Requirement already satisfied: llama-index-embeddings-openai<0.2.0,>=0.1.5 in /usr/local/lib/python3.10/dist-packages (from llama-index->-r requirements.txt (line 16)) (0.1.7)
Requirement already satisfied: llama-index-indices-managed-llama-cloud<0.2.0,>=0.1.2 in /usr/local/lib/python3.10/dist-packages (from llama-index->-r requirements.txt (line 16)) (0.1.5)
Requirement already satisfied: llama-index-legacy<0.10.0,>=0.9.48 in /usr/local/lib/python3.10/dist-packages (from llama-index->-r requirements.txt (line 16)) (0.9.48)
Requirement already satisfied: llama-index-llms-openai<0.2.0,>=0.1.13 in /usr/local/lib/python3.10/dist-packages (from llama-index->-r requirements.txt (line 16)) (0.1.13)
Requirement already satisfied: llama-index-multi-modal-llms-openai<0.2.0,>=0.1.3 in /usr/local/lib/python3.10/dist-packages (from llama-index->-r requirements.txt (line 16)) (0.1.4)
Requirement already satisfied: llama-index-program-openai<0.2.0,>=0.1.3 in /usr/local/lib/python3.10/dist-packages (from llama-index->-r requirements.txt (line 16)) (0.1.4)
Requirement already satisfied: llama-index-question-gen-openai<0.2.0,>=0.1.2 in /usr/local/lib/python3.10/dist-packages (from llama-index->-r requirements.txt (line 16)) (0.1.3)
Requirement already satisfied: llama-index-readers-file<0.2.0,>=0.1.4 in /usr/local/lib/python3.10/dist-packages (from llama-index->-r requirements.txt (line 16)) (0.1.12)
Requirement already satisfied: llama-index-readers-llama-parse<0.2.0,>=0.1.2 in /usr/local/lib/python3.10/dist-packages (from llama-index->-r requirements.txt (line 16)) (0.1.4)
Requirement already satisfied: build>=1.0.3 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (1.0.3)
Requirement already satisfied: chroma-hnswlib==0.7.3 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (0.7.3)
Requirement already satisfied: posthog>=2.4.0 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (3.4.2)
Requirement already satisfied: pulsar-client>=3.1.0 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (3.4.0)
Requirement already satisfied: onnxruntime>=1.14.1 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (1.17.0)
Requirement already satisfied: opentelemetry-api>=1.2.0 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (1.22.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-grpc>=1.2.0 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (1.22.0)
Requirement already satisfied: opentelemetry-instrumentation-fastapi>=0.41b0 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (0.43b0)
Requirement already satisfied: opentelemetry-sdk>=1.2.0 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (1.22.0)
Requirement already satisfied: pypika>=0.48.9 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (0.48.9)
Requirement already satisfied: overrides>=7.3.1 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (7.7.0)
Requirement already satisfied: importlib-resources in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (6.1.1)
Requirement already satisfied: grpcio>=1.58.0 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (1.62.0)
Requirement already satisfied: bcrypt>=4.0.1 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (4.1.2)
Requirement already satisfied: typer>=0.9.0 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (0.9.0)
Requirement already satisfied: kubernetes>=28.1.0 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (29.0.0)
Requirement already satisfied: mmh3>=4.0.1 in /usr/local/lib/python3.10/dist-packages (from chromadb->-r requirements.txt (line 18)) (4.1.0)
Requirement already satisfied: sentence-transformers<3.0.0,>=2.6.1 in /usr/local/lib/python3.10/dist-packages (from llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (2.6.1)
Requirement already satisfied: llama-index-llms-azure-openai<0.2.0,>=0.1.3 in /usr/local/lib/python3.10/dist-packages (from llama-index-embeddings-azure-openai->-r requirements.txt (line 20)) (0.1.5)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->-r requirements.txt (line 1)) (1.3.1)
Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->-r requirements.txt (line 1)) (23.2.0)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->-r requirements.txt (line 1)) (1.4.1)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->-r requirements.txt (line 1)) (6.0.5)
Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->-r requirements.txt (line 1)) (1.9.4)
Requirement already satisfied: idna>=2.8 in /usr/lib/python3/dist-packages (from anyio<5,>=3->langchain-core->-r requirements.txt (line 14)) (3.3)
Requirement already satisfied: sniffio>=1.1 in /usr/local/lib/python3.10/dist-packages (from anyio<5,>=3->langchain-core->-r requirements.txt (line 14)) (1.3.0)
Requirement already satisfied: exceptiongroup>=1.0.2 in /usr/local/lib/python3.10/dist-packages (from anyio<5,>=3->langchain-core->-r requirements.txt (line 14)) (1.2.0)
Requirement already satisfied: pyproject_hooks in /usr/local/lib/python3.10/dist-packages (from build>=1.0.3->chromadb->-r requirements.txt (line 18)) (1.0.0)
Requirement already satisfied: marshmallow<4.0.0,>=3.18.0 in /usr/local/lib/python3.10/dist-packages (from dataclasses-json<0.7,>=0.5.7->langchain->-r requirements.txt (line 13)) (3.20.2)
Requirement already satisfied: typing-inspect<1,>=0.4.0 in /usr/local/lib/python3.10/dist-packages (from dataclasses-json<0.7,>=0.5.7->langchain->-r requirements.txt (line 13)) (0.9.0)
Requirement already satisfied: zipp>=0.5 in /usr/lib/python3/dist-packages (from importlib-metadata>=6.8.0->litellm->-r requirements.txt (line 3)) (1.0.0)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/lib/python3/dist-packages (from jinja2<4.0.0,>=3.1.2->litellm->-r requirements.txt (line 3)) (2.0.1)
Requirement already satisfied: jsonpointer>=1.9 in /usr/local/lib/python3.10/dist-packages (from jsonpatch<2.0,>=1.33->langchain->-r requirements.txt (line 13)) (2.4)
Requirement already satisfied: certifi>=14.05.14 in /usr/lib/python3/dist-packages (from kubernetes>=28.1.0->chromadb->-r requirements.txt (line 18)) (2020.6.20)
Requirement already satisfied: six>=1.9.0 in /usr/lib/python3/dist-packages (from kubernetes>=28.1.0->chromadb->-r requirements.txt (line 18)) (1.16.0)
Requirement already satisfied: google-auth>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from kubernetes>=28.1.0->chromadb->-r requirements.txt (line 18)) (2.28.1)
Requirement already satisfied: websocket-client!=0.40.0,!=0.41.*,!=0.42.*,>=0.32.0 in /usr/lib/python3/dist-packages (from kubernetes>=28.1.0->chromadb->-r requirements.txt (line 18)) (1.2.3)
Requirement already satisfied: requests-oauthlib in /usr/local/lib/python3.10/dist-packages (from kubernetes>=28.1.0->chromadb->-r requirements.txt (line 18)) (1.3.1)
Requirement already satisfied: oauthlib>=3.2.2 in /usr/local/lib/python3.10/dist-packages (from kubernetes>=28.1.0->chromadb->-r requirements.txt (line 18)) (3.2.2)
Requirement already satisfied: urllib3>=1.24.2 in /usr/lib/python3/dist-packages (from kubernetes>=28.1.0->chromadb->-r requirements.txt (line 18)) (1.26.5)
Requirement already satisfied: deprecated>=1.2.9.3 in /usr/local/lib/python3.10/dist-packages (from llama-index-core<0.11.0,>=0.10.24->llama-index->-r requirements.txt (line 16)) (1.2.14)
Requirement already satisfied: dirtyjson<2.0.0,>=1.0.8 in /usr/local/lib/python3.10/dist-packages (from llama-index-core<0.11.0,>=0.10.24->llama-index->-r requirements.txt (line 16)) (1.0.8)
Requirement already satisfied: httpx in /usr/local/lib/python3.10/dist-packages (from llama-index-core<0.11.0,>=0.10.24->llama-index->-r requirements.txt (line 16)) (0.27.0)
Requirement already satisfied: llamaindex-py-client<0.2.0,>=0.1.13 in /usr/local/lib/python3.10/dist-packages (from llama-index-core<0.11.0,>=0.10.24->llama-index->-r requirements.txt (line 16)) (0.1.13)
Requirement already satisfied: nest-asyncio<2.0.0,>=1.5.8 in /usr/local/lib/python3.10/dist-packages (from llama-index-core<0.11.0,>=0.10.24->llama-index->-r requirements.txt (line 16)) (1.6.0)
Requirement already satisfied: networkx>=3.0 in /usr/local/lib/python3.10/dist-packages (from llama-index-core<0.11.0,>=0.10.24->llama-index->-r requirements.txt (line 16)) (3.2.1)
Requirement already satisfied: nltk<4.0.0,>=3.8.1 in /usr/local/lib/python3.10/dist-packages (from llama-index-core<0.11.0,>=0.10.24->llama-index->-r requirements.txt (line 16)) (3.8.1)
Requirement already satisfied: pillow>=9.0.0 in /usr/lib/python3/dist-packages (from llama-index-core<0.11.0,>=0.10.24->llama-index->-r requirements.txt (line 16)) (9.0.1)
Requirement already satisfied: azure-identity<2.0.0,>=1.15.0 in /usr/local/lib/python3.10/dist-packages (from llama-index-llms-azure-openai<0.2.0,>=0.1.3->llama-index-embeddings-azure-openai->-r requirements.txt (line 20)) (1.15.0)
Requirement already satisfied: beautifulsoup4<5.0.0,>=4.12.3 in /usr/local/lib/python3.10/dist-packages (from llama-index-readers-file<0.2.0,>=0.1.4->llama-index->-r requirements.txt (line 16)) (4.12.3)
Requirement already satisfied: bs4<0.0.3,>=0.0.2 in /usr/local/lib/python3.10/dist-packages (from llama-index-readers-file<0.2.0,>=0.1.4->llama-index->-r requirements.txt (line 16)) (0.0.2)
Requirement already satisfied: pymupdf<2.0.0,>=1.23.21 in /usr/local/lib/python3.10/dist-packages (from llama-index-readers-file<0.2.0,>=0.1.4->llama-index->-r requirements.txt (line 16)) (1.24.0)
Requirement already satisfied: pypdf<5.0.0,>=4.0.1 in /usr/local/lib/python3.10/dist-packages (from llama-index-readers-file<0.2.0,>=0.1.4->llama-index->-r requirements.txt (line 16)) (4.1.0)
Requirement already satisfied: striprtf<0.0.27,>=0.0.26 in /usr/local/lib/python3.10/dist-packages (from llama-index-readers-file<0.2.0,>=0.1.4->llama-index->-r requirements.txt (line 16)) (0.0.26)
Requirement already satisfied: llama-parse<0.5.0,>=0.4.0 in /usr/local/lib/python3.10/dist-packages (from llama-index-readers-llama-parse<0.2.0,>=0.1.2->llama-index->-r requirements.txt (line 16)) (0.4.0)
Requirement already satisfied: coloredlogs in /usr/local/lib/python3.10/dist-packages (from onnxruntime>=1.14.1->chromadb->-r requirements.txt (line 18)) (15.0.1)
Requirement already satisfied: flatbuffers in /usr/local/lib/python3.10/dist-packages (from onnxruntime>=1.14.1->chromadb->-r requirements.txt (line 18)) (23.5.26)
Requirement already satisfied: protobuf in /usr/local/lib/python3.10/dist-packages (from onnxruntime>=1.14.1->chromadb->-r requirements.txt (line 18)) (4.25.3)
Requirement already satisfied: sympy in /usr/lib/python3/dist-packages (from onnxruntime>=1.14.1->chromadb->-r requirements.txt (line 18)) (1.9)
Requirement already satisfied: distro<2,>=1.7.0 in /usr/lib/python3/dist-packages (from openai>=1.0.0->litellm->-r requirements.txt (line 3)) (1.7.0)
Requirement already satisfied: backoff<3.0.0,>=1.10.0 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-exporter-otlp-proto-grpc>=1.2.0->chromadb->-r requirements.txt (line 18)) (2.2.1)
Requirement already satisfied: googleapis-common-protos~=1.52 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-exporter-otlp-proto-grpc>=1.2.0->chromadb->-r requirements.txt (line 18)) (1.62.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-common==1.22.0 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-exporter-otlp-proto-grpc>=1.2.0->chromadb->-r requirements.txt (line 18)) (1.22.0)
Requirement already satisfied: opentelemetry-proto==1.22.0 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-exporter-otlp-proto-grpc>=1.2.0->chromadb->-r requirements.txt (line 18)) (1.22.0)
Requirement already satisfied: opentelemetry-instrumentation-asgi==0.43b0 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-instrumentation-fastapi>=0.41b0->chromadb->-r requirements.txt (line 18)) (0.43b0)
Requirement already satisfied: opentelemetry-instrumentation==0.43b0 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-instrumentation-fastapi>=0.41b0->chromadb->-r requirements.txt (line 18)) (0.43b0)
Requirement already satisfied: opentelemetry-semantic-conventions==0.43b0 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-instrumentation-fastapi>=0.41b0->chromadb->-r requirements.txt (line 18)) (0.43b0)
Requirement already satisfied: opentelemetry-util-http==0.43b0 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-instrumentation-fastapi>=0.41b0->chromadb->-r requirements.txt (line 18)) (0.43b0)
Requirement already satisfied: setuptools>=16.0 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-instrumentation==0.43b0->opentelemetry-instrumentation-fastapi>=0.41b0->chromadb->-r requirements.txt (line 18)) (69.1.1)
Requirement already satisfied: wrapt<2.0.0,>=1.0.0 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-instrumentation==0.43b0->opentelemetry-instrumentation-fastapi>=0.41b0->chromadb->-r requirements.txt (line 18)) (1.16.0)
Requirement already satisfied: asgiref~=3.0 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-instrumentation-asgi==0.43b0->opentelemetry-instrumentation-fastapi>=0.41b0->chromadb->-r requirements.txt (line 18)) (3.7.2)
Requirement already satisfied: monotonic>=1.5 in /usr/lib/python3/dist-packages (from posthog>=2.4.0->chromadb->-r requirements.txt (line 18)) (1.6)
Requirement already satisfied: annotated-types>=0.4.0 in /usr/local/lib/python3.10/dist-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi->-r requirements.txt (line 7)) (0.6.0)
Requirement already satisfied: pydantic-core==2.16.2 in /usr/local/lib/python3.10/dist-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi->-r requirements.txt (line 7)) (2.16.2)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->datasets->-r requirements.txt (line 1)) (3.3.2)
Requirement already satisfied: transformers<5.0.0,>=4.32.0 in /usr/local/lib/python3.10/dist-packages (from sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (4.39.1)
Requirement already satisfied: torch>=1.11.0 in /usr/local/lib/python3.10/dist-packages (from sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (2.2.1)
Requirement already satisfied: scikit-learn in /usr/local/lib/python3.10/dist-packages (from sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (1.4.1.post1)
Requirement already satisfied: scipy in /usr/lib/python3/dist-packages (from sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (1.8.0)
Requirement already satisfied: greenlet!=0.4.17 in /usr/local/lib/python3.10/dist-packages (from SQLAlchemy<3,>=1.4->langchain->-r requirements.txt (line 13)) (3.0.3)
Requirement already satisfied: regex>=2022.1.18 in /usr/local/lib/python3.10/dist-packages (from tiktoken>=0.4.0->litellm->-r requirements.txt (line 3)) (2023.12.25)
Requirement already satisfied: azure-core<2.0.0,>=1.23.0 in /usr/local/lib/python3.10/dist-packages (from azure-identity<2.0.0,>=1.15.0->llama-index-llms-azure-openai<0.2.0,>=0.1.3->llama-index-embeddings-azure-openai->-r requirements.txt (line 20)) (1.30.1)
Requirement already satisfied: cryptography>=2.5 in /usr/local/lib/python3.10/dist-packages (from azure-identity<2.0.0,>=1.15.0->llama-index-llms-azure-openai<0.2.0,>=0.1.3->llama-index-embeddings-azure-openai->-r requirements.txt (line 20)) (42.0.4)
Requirement already satisfied: msal<2.0.0,>=1.24.0 in /usr/local/lib/python3.10/dist-packages (from azure-identity<2.0.0,>=1.15.0->llama-index-llms-azure-openai<0.2.0,>=0.1.3->llama-index-embeddings-azure-openai->-r requirements.txt (line 20)) (1.28.0)
Requirement already satisfied: msal-extensions<2.0.0,>=0.3.0 in /usr/local/lib/python3.10/dist-packages (from azure-identity<2.0.0,>=1.15.0->llama-index-llms-azure-openai<0.2.0,>=0.1.3->llama-index-embeddings-azure-openai->-r requirements.txt (line 20)) (1.1.0)
Requirement already satisfied: soupsieve>1.2 in /usr/lib/python3/dist-packages (from beautifulsoup4<5.0.0,>=4.12.3->llama-index-readers-file<0.2.0,>=0.1.4->llama-index->-r requirements.txt (line 16)) (2.3.1)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from google-auth>=1.0.1->kubernetes>=28.1.0->chromadb->-r requirements.txt (line 18)) (5.3.2)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.10/dist-packages (from google-auth>=1.0.1->kubernetes>=28.1.0->chromadb->-r requirements.txt (line 18)) (0.3.0)
Requirement already satisfied: rsa<5,>=3.1.4 in /usr/local/lib/python3.10/dist-packages (from google-auth>=1.0.1->kubernetes>=28.1.0->chromadb->-r requirements.txt (line 18)) (4.9)
Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.10/dist-packages (from httpx->llama-index-core<0.11.0,>=0.10.24->llama-index->-r requirements.txt (line 16)) (1.0.4)
Requirement already satisfied: joblib in /usr/local/lib/python3.10/dist-packages (from nltk<4.0.0,>=3.8.1->llama-index-core<0.11.0,>=0.10.24->llama-index->-r requirements.txt (line 16)) (1.3.2)
Requirement already satisfied: PyMuPDFb==1.24.0 in /usr/local/lib/python3.10/dist-packages (from pymupdf<2.0.0,>=1.23.21->llama-index-readers-file<0.2.0,>=0.1.4->llama-index->-r requirements.txt (line 16)) (1.24.0)
Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch>=1.11.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (12.1.105)
Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch>=1.11.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (12.1.105)
Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch>=1.11.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (12.1.105)
Requirement already satisfied: nvidia-cudnn-cu12==8.9.2.26 in /usr/local/lib/python3.10/dist-packages (from torch>=1.11.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (8.9.2.26)
Requirement already satisfied: nvidia-cublas-cu12==12.1.3.1 in /usr/local/lib/python3.10/dist-packages (from torch>=1.11.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (12.1.3.1)
Requirement already satisfied: nvidia-cufft-cu12==11.0.2.54 in /usr/local/lib/python3.10/dist-packages (from torch>=1.11.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (11.0.2.54)
Requirement already satisfied: nvidia-curand-cu12==10.3.2.106 in /usr/local/lib/python3.10/dist-packages (from torch>=1.11.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (10.3.2.106)
Requirement already satisfied: nvidia-cusolver-cu12==11.4.5.107 in /usr/local/lib/python3.10/dist-packages (from torch>=1.11.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (11.4.5.107)
Requirement already satisfied: nvidia-cusparse-cu12==12.1.0.106 in /usr/local/lib/python3.10/dist-packages (from torch>=1.11.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (12.1.0.106)
Requirement already satisfied: nvidia-nccl-cu12==2.19.3 in /usr/local/lib/python3.10/dist-packages (from torch>=1.11.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (2.19.3)
Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in /usr/local/lib/python3.10/dist-packages (from torch>=1.11.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (12.1.105)
Requirement already satisfied: triton==2.2.0 in /usr/local/lib/python3.10/dist-packages (from torch>=1.11.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (2.2.0)
Requirement already satisfied: nvidia-nvjitlink-cu12 in /usr/local/lib/python3.10/dist-packages (from nvidia-cusolver-cu12==11.4.5.107->torch>=1.11.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (12.4.99)
Requirement already satisfied: safetensors>=0.4.1 in /usr/local/lib/python3.10/dist-packages (from transformers<5.0.0,>=4.32.0->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (0.4.2)
Requirement already satisfied: humanfriendly>=9.1 in /usr/local/lib/python3.10/dist-packages (from coloredlogs->onnxruntime>=1.14.1->chromadb->-r requirements.txt (line 18)) (10.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from scikit-learn->sentence-transformers<3.0.0,>=2.6.1->llama-index-embeddings-huggingface->-r requirements.txt (line 19)) (3.4.0)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.10/dist-packages (from cryptography>=2.5->azure-identity<2.0.0,>=1.15.0->llama-index-llms-azure-openai<0.2.0,>=0.1.3->llama-index-embeddings-azure-openai->-r requirements.txt (line 20)) (1.16.0)
Requirement already satisfied: PyJWT<3,>=1.0.0 in /usr/lib/python3/dist-packages (from PyJWT[crypto]<3,>=1.0.0->msal<2.0.0,>=1.24.0->azure-identity<2.0.0,>=1.15.0->llama-index-llms-azure-openai<0.2.0,>=0.1.3->llama-index-embeddings-azure-openai->-r requirements.txt (line 20)) (2.3.0)
Requirement already satisfied: portalocker<3,>=1.0 in /usr/local/lib/python3.10/dist-packages (from msal-extensions<2.0.0,>=0.3.0->azure-identity<2.0.0,>=1.15.0->llama-index-llms-azure-openai<0.2.0,>=0.1.3->llama-index-embeddings-azure-openai->-r requirements.txt (line 20)) (2.8.2)
Requirement already satisfied: pyasn1<0.6.0,>=0.4.6 in /usr/lib/python3/dist-packages (from pyasn1-modules>=0.2.1->google-auth>=1.0.1->kubernetes>=28.1.0->chromadb->-r requirements.txt (line 18)) (0.4.8)
Requirement already satisfied: pycparser in /usr/local/lib/python3.10/dist-packages (from cffi>=1.12->cryptography>=2.5->azure-identity<2.0.0,>=1.15.0->llama-index-llms-azure-openai<0.2.0,>=0.1.3->llama-index-embeddings-azure-openai->-r requirements.txt (line 20)) (2.21)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
mack@compute:/ssd1tb/project/OpenDevin$ sudo uvicorn opendevin.server.listen:app --port 3000 --host 0.0.0.0
/usr/lib/python3/dist-packages/paramiko/transport.py:237: CryptographyDeprecationWarning: Blowfish has been deprecated and will be removed in a future release
"class": algorithms.Blowfish,
/usr/lib/python3/dist-packages/scipy/__init__.py:146: UserWarning: A NumPy version >=1.17.3 and <1.25.0 is required for this version of SciPy (detected version 1.26.4
warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"
INFO: Started server process [1540061]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:3000 (Press CTRL+C to quit)
INFO: ('10.7.0.20', 51556) - "WebSocket /ws" [accepted]
INFO: connection open
==============
STEP 0
AGENT ERROR:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 212, in parse_result
return parse_json_markdown(text)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 157, in parse_json_markdown
parsed = parser(json_str)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 125, in parse_partial_json
return json.loads(s, strict=strict)
File "/usr/lib/python3.10/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 4 column 41 (char 71)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ssd1tb/project/OpenDevin/opendevin/controller/__init__.py", line 85, in step
action = self.agent.step(state)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/__init__.py", line 174, in step
action = prompts.parse_action_response(action_resp)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/utils/prompts.py", line 167, in parse_action_response
action_dict = parser.parse(response)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 218, in parse
return self.parse_result([Generation(text=text)])
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 215, in parse_result
raise OutputParserException(msg, llm_output=text) from e
langchain_core.exceptions.OutputParserException: Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
OBSERVATION:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
==============
STEP 1
AGENT ERROR:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 212, in parse_result
return parse_json_markdown(text)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 157, in parse_json_markdown
parsed = parser(json_str)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 125, in parse_partial_json
return json.loads(s, strict=strict)
File "/usr/lib/python3.10/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 4 column 41 (char 71)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ssd1tb/project/OpenDevin/opendevin/controller/__init__.py", line 85, in step
action = self.agent.step(state)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/__init__.py", line 174, in step
action = prompts.parse_action_response(action_resp)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/utils/prompts.py", line 167, in parse_action_response
action_dict = parser.parse(response)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 218, in parse
return self.parse_result([Generation(text=text)])
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 215, in parse_result
raise OutputParserException(msg, llm_output=text) from e
langchain_core.exceptions.OutputParserException: Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
OBSERVATION:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
==============
STEP 2
AGENT ERROR:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 212, in parse_result
return parse_json_markdown(text)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 157, in parse_json_markdown
parsed = parser(json_str)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 125, in parse_partial_json
return json.loads(s, strict=strict)
File "/usr/lib/python3.10/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 4 column 41 (char 71)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ssd1tb/project/OpenDevin/opendevin/controller/__init__.py", line 85, in step
action = self.agent.step(state)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/__init__.py", line 174, in step
action = prompts.parse_action_response(action_resp)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/utils/prompts.py", line 167, in parse_action_response
action_dict = parser.parse(response)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 218, in parse
return self.parse_result([Generation(text=text)])
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 215, in parse_result
raise OutputParserException(msg, llm_output=text) from e
langchain_core.exceptions.OutputParserException: Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
OBSERVATION:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
==============
STEP 3
AGENT ERROR:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 212, in parse_result
return parse_json_markdown(text)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 157, in parse_json_markdown
parsed = parser(json_str)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 125, in parse_partial_json
return json.loads(s, strict=strict)
File "/usr/lib/python3.10/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 4 column 41 (char 71)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ssd1tb/project/OpenDevin/opendevin/controller/__init__.py", line 85, in step
action = self.agent.step(state)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/__init__.py", line 174, in step
action = prompts.parse_action_response(action_resp)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/utils/prompts.py", line 167, in parse_action_response
action_dict = parser.parse(response)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 218, in parse
return self.parse_result([Generation(text=text)])
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 215, in parse_result
raise OutputParserException(msg, llm_output=text) from e
langchain_core.exceptions.OutputParserException: Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
OBSERVATION:
Invalid json output: {
"action": "think",
"args": {
"thought": "I need to check if the hello\_world.sh script exists in this directory."
}
}
==============
STEP 4
AGENT ERROR:
Invalid json output: {
"action": "think",
"args": {
"thought": "I should check if the 'hello\_world.sh' script exists in this directory by running 'ls'."
}
}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 212, in parse_result
return parse_json_markdown(text)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 157, in parse_json_markdown
parsed = parser(json_str)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 125, in parse_partial_json
return json.loads(s, strict=strict)
File "/usr/lib/python3.10/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 4 column 41 (char 71)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ssd1tb/project/OpenDevin/opendevin/controller/__init__.py", line 85, in step
action = self.agent.step(state)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/__init__.py", line 174, in step
action = prompts.parse_action_response(action_resp)
File "/ssd1tb/project/OpenDevin/agenthub/langchains_agent/utils/prompts.py", line 167, in parse_action_response
action_dict = parser.parse(response)
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 218, in parse
return self.parse_result([Generation(text=text)])
File "/usr/local/lib/python3.10/dist-packages/langchain_core/output_parsers/json.py", line 215, in parse_result
raise OutputParserException(msg, llm_output=text) from e
langchain_core.exceptions.OutputParserException: Invalid json output: {
"action": "think",
"args": {
"thought": "I should check if the 'hello\_world.sh' script exists in this directory by running 'ls'."
}
}
OBSERVATION:
Invalid json output: {
"action": "think",
"args": {
"thought": "I should check if the 'hello\_world.sh' script exists in this directory by running 'ls'."
}
}
==============
STEP 5
ACTION:
AgentThinkAction(thought="I should check if the 'hello_world.sh' script exists in this directory by running 'ls'. I will then run 'cat hello_world.sh' to view its contents, and finally use 'bash hello_world.sh' to execute it.", runnable=False)
==============