Closed dwk601 closed 2 months ago
GPT 3.5 is outputting invalid JSON and it causes issues with the LangChain response parser.
Try manually changing the temperature of the model:
config = {
"llm": {
"model": "gpt-3.5-turbo",
"temperature": 0
}
}
If this doesn't work, try raising it slightly, to something like 0.01 or 0.05.
It still didn't fix the issue, even I change the temperature of the llm
Exception has occurred: OutputParserException
Invalid json output: {
"answer": {
"Chioggia is famous for being an alternative to Venice for a more authentic Italian experience, with fewer tourists and genuine locals, having a significant fishing industry and a rich history tied to the Venetian Republic, hosting the largest fish market in the Adriatic offering a wide variety of fresh seafood, featuring the recommended restaurant Baia dei Porci for its atmosphere and delicious food at reasonable prices, and being located near Sottomarina which has a long beach and historical sea defenses."
}
}
json.decoder.JSONDecodeError: Expecting ':' delimiter: line 4 column 5 (char 544)
The above exception was the direct cause of the following exception:
File "/home/dongwook/Project/auto_crawl/toy.py", line 21, in <module>
raw_result = search_graph.run()
langchain_core.exceptions.OutputParserException: Invalid json output: {
"answer": {
"Chioggia is famous for being an alternative to Venice for a more authentic Italian experience, with fewer tourists and genuine locals, having a significant fishing industry and a rich history tied to the Venetian Republic, hosting the largest fish market in the Adriatic offering a wide variety of fresh seafood, featuring the recommended restaurant Baia dei Porci for its atmosphere and delicious food at reasonable prices, and being located near Sottomarina which has a long beach and historical sea defenses."
}
}
hi, have you tried with other models?
because on ollama works
this gives this error even I didn't modified the code. any idea how to fix this error?