Skip to content

feat: enhance vector index details functionality#977

Closed
iziang wants to merge 2 commits into
mainfrom
support/view-vector-details
Closed

feat: enhance vector index details functionality#977
iziang wants to merge 2 commits into
mainfrom
support/view-vector-details

Conversation

@iziang
Copy link
Copy Markdown
Contributor

@iziang iziang commented Jun 23, 2025

No description provided.

iziang added 2 commits June 23, 2025 14:09
- Added new API endpoint to retrieve vector index details for documents.
- Updated document schema to include vector index details.
- Integrated vector index details into the frontend, including a new drawer component for displaying vector information.
- Added translations for vector index details in both English and Chinese.
- Added new API endpoint to retrieve vector index details for documents.
- Updated document schema to include vector index details.
- Integrated vector index details into the frontend with a new drawer component for displaying vector information.
- Added translations for vector index details in English and Chinese.
@apecloud-bot apecloud-bot added the size/XL Denotes a PR that changes 500-999 lines. label Jun 23, 2025
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: API Client URL Mismatch Causes 404 Errors

The generated frontend API client uses the URL path /collections/{collection_id}/documents/{document_id}/vector_index (with an underscore), which mismatches the OpenAPI specification and backend route that define the path as /collections/{collection_id}/documents/{document_id}/vector-index (with a hyphen). This inconsistency will cause all API calls to this endpoint to fail with 404 errors.

frontend/src/api/apis/default-api.ts#L2207-L2210

assertParamExists('collectionsCollectionIdDocumentsDocumentIdVectorIndexGet', 'documentId', documentId)
const localVarPath = `/collections/{collection_id}/documents/{document_id}/vector_index`
.replace(`{${"collection_id"}}`, encodeURIComponent(String(collectionId)))
.replace(`{${"document_id"}}`, encodeURIComponent(String(documentId)));

Fix in Cursor


BugBot free trial expires on July 22, 2025
You have used $0.00 of your $1.00 spend limit so far. Manage your spend limit in the Cursor dashboard.

Was this report helpful? Give feedback by reacting with 👍 or 👎

@iziang iziang closed this Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Denotes a PR that changes 500-999 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants