Knowledge Base API
Previously, creating and managing a knowledge base required using the Orq UI. Users had to manually create a knowledge base, upload one file at a time, and define a chunking strategy per datasource. While simple, this process was time-consuming, especially for developers looking to scale or automate their workflows.
With the new Knowledge Base API, all major operations are now available programmatically. You can create and manage knowledge bases, upload datasources, generate or manage chunks, and perform retrieval-related actions, all through code.
This opens up much more flexibility, especially for teams working on complex chunks. You can now:
• Perform chunking on your own side, tailored to your data structure
• Bring your own chunks—and even include your own embeddings
• Let Orq embed the chunks if embeddings aren’t provided, using the model specified in your API call
Note: Attaching custom metadata to chunks isn’t supported yet but will be added soon.
Available operations:
• Knowledge bases: create, list, retrieve, update, delete
• Datasources: create, list, retrieve, update, delete
• Chunks: create, list, retrieve, update, delete
• Search: inspect what’s being retrieved
Whether you’re working with a single file or a dynamic content pipeline, this update makes the knowledge base workflow faster, more flexible, and developer-friendly.
