Skip to content

[Bug]: Agents - too long function description with medium size RAG knowledge base  #4745

@thingersoft

Description

@thingersoft

What happened?

Agents RAG tool generated function description exceeding the 1024 maximum length allowed by OpenAI API.

I can provide a sample knowledge base if needed.

Steps to Reproduce

  1. configure RAG
  2. configure an agent
  3. enable file search for the agent
  4. upload documents for a small/medium size knowledge base (let's say 50000 words)
  5. start a chat with the agent

What browsers are you seeing the problem on?

No response

Relevant log output

error: [api/server/controllers/agents/client.js #sendCompletion] Unhandled error type 400 Invalid 'tools[1].function.description': string too long. Expected a string with maximum length 1024, but got a string with length 1775 instead.

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

🐛 bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions