Closed AbdullahADhaim closed 2 months ago
This code works fine and doesn't give any error, but the web connector isn't properly working and the result has ZERO documents unless I use a normal HTTP POST Request to https://production.api.cohere.ai/v1/chat it will work
https://production.api.cohere.ai/v1/chat
co.chat(model="command-r-plus", message=PROMPT, preamble=PREAMBLE, connectors=[{"id": "web-search"}])
Discussed over discord. Requires prompt engineering/guided generation
This code works fine and doesn't give any error, but the web connector isn't properly working and the result has ZERO documents unless I use a normal HTTP POST Request to
https://production.api.cohere.ai/v1/chat
it will workco.chat(model="command-r-plus", message=PROMPT, preamble=PREAMBLE, connectors=[{"id": "web-search"}])