跳转到内容
EN

知识库 API

(待译)

Knowledge turns uploaded files into searchable knowledge bases with asynchronous ingestion and inspectable text segments. Concepts and behavior follow OpenAI vector stores (stores, file attachments, batches and search), so OpenAI vector stores experience applies. Differences: search has no next page (native results count chunks, while the compatible URL groups files); auto ranking does not rerank, so request default-2024-11-15 for reranking; chunk sizes use estimated tokens rather than a model tokenizer; ingestion accepts PDFs up to 512 MiB and other formats up to 50 MiB (the Router conversion limit), including images and XLSX; native hierarchical chunking retrieves child matches with parent context, and native search content can reference source images with image_file_id; native deletion retains a readable, restorable store for seven days. Start with praxis.knowledge.vectorStores.create, passing file_ids from File uploads to begin ingestion.

把文件加入知识库,按语义和关键词搜索相关分段。使用 API Key 作为 Bearer 凭据,建议从服务端调用。

https://api.deepraxis.com/knowledge/v1

快速开始:官方 Python SDK

资源用途
知识库创建、读取、更新、删除与恢复
文件添加、读取、更新属性、移除与重试
批量成批添加文件、读取状态与取消
搜索检索相关文本分段
分段读取分段、位置与关键词
事件读取知识库与文件处理事件

错误码 · 上限与格式支持 · OpenAI vector stores