Skip to main content

POST /v1/chat

{
  "query": "How do I authenticate?",
  "llm_provider": "openai",
  "llm_model": "gpt-4o-mini",
  "embedder_provider": "voyage",
  "embedder_model": "voyage-3",
  "vector_db": "qdrant",
  "collection": "docs",
  "url": "http://localhost:6333",
  "history": []
}
Multi-turn: pass the history from the previous response:
{
  "query": "What about the second step?",
  "llm_provider": "openai",
  "llm_model": "gpt-4o-mini",
  "embedder_provider": "voyage",
  "embedder_model": "voyage-3",
  "vector_db": "qdrant",
  "collection": "docs",
  "url": "http://localhost:6333",
  "history": [
    {"role": "user", "content": "How do I authenticate?"},
    {"role": "assistant", "content": "To authenticate, you need to..."}
  ],
  "query_rewrite": {"enabled": true}
}