Knowledge Bases with AI Gateway
This page describes features extending the AI Gateway, which provides a unified API for accessing multiple AI providers. To learn more, see AI Gateway.
Knowledge Bases are made to provide relevant and specific information for an LLM to use
Quick Start
const response = await openai.chat.completions.create({
model: 'openai/gpt-4o',
messages: [{ role: 'user', content: 'How can I upgrade my account?' }],
orq: {
knowledge_bases: [
{
knowledge_id: 'api-documentation',
top_k: 5,
threshold: 0.7,
search_type: 'hybrid_search'
}
]
}
});
Updated about 4 hours ago