-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat:Add POST endpoints for corpus size and document summary to Vectara API #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis update extends the OpenAPI specification for the Vectara REST API. Two new POST endpoints have been added: one to compute the size of a corpus by its key and another to summarize a document by its ID. The modifications include new response codes (403, 404, 409) and expanded schemas with additional properties related to query rewriting and computed corpus details. Existing request and response schemas have been updated to incorporate parameters for intelligent query rewriting. Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant A as Vectara API
participant D as Database/Processing
C->>A: POST /v2/corpora/{corpus_key}/compute_size
A->>D: Retrieve corpus size details (documents, parts, chars)
D-->>A: Return size data
A-->>C: Response (200/403/404/409)
C->>A: POST /v2/corpora/{corpus_key}/documents/{document_id}/summarize
A->>D: Process document summarization
D-->>A: Return summary data
A-->>C: Response (200/403/404/409)
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (101)
📒 Files selected for processing (1)
🔇 Additional comments (15)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit