GET: file chunk data by chunk_id #29#41
Merged
aliamerj merged 2 commits intoDcup-dev:mainfrom Apr 6, 2025
aliamerj:feat-api/retrieve-chunks
Merged
GET: file chunk data by chunk_id #29#41aliamerj merged 2 commits intoDcup-dev:mainfrom aliamerj:feat-api/retrieve-chunks
aliamerj merged 2 commits intoDcup-dev:mainfrom
aliamerj:feat-api/retrieve-chunks
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Ali Amer <76897266+aliamerj@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (3)
app/api/chunks/[...ids]/route.ts:7
- [nitpick] Consider renaming 'qdrantCLient' to 'qdrantClient' to follow standard naming conventions.
import { qdrant_collection_name, qdrantCLient } from "@/qdrant";
app/api/chunks/[...ids]/route.ts:51
- [nitpick] The use of the variable name 'e' is ambiguous; consider renaming it to 'connection' (or a more descriptive name) for better readability.
.flatMap(e => e.files
app/api/chunks/[...ids]/route.ts:52
- [nitpick] Consider renaming the parameter 'e' to a more descriptive name such as 'file' to improve code clarity.
.flatMap(e => e.chunksIds))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part: #29
Description:
/api/chunks/{chunk_id}/{chunk_id}..: to list file chunks by their IDs.Parameters: Requires at least one chunk ID.
API Response Object
[ { "chunkId": "chunk-id-1", "fileName": "example.pdf", "source": "DIRECT_UPLOAD", "metadata": { "key": "value" }, "pageNumber": 1, "dataType": "text", "chunkTitle": "Title Example", "chunkSummary": "Summary example", "chunkContent": "Content of the chunk" }, { "chunkId": "chunk-id-2", "fileName": "example2.pdf", "source": "DIRECT_UPLOAD", "metadata": { "key": "value" }, "pageNumber": 2, "dataType": "text", "chunkTitle": "Title Example 2", "chunkSummary": "Summary example 2", "chunkContent": "Content of the chunk" } ]