-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
fix(qdrant): Support custom payload also when using fromExistingCollection #7069
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
* @returns Promise that resolves when the documents have been added to the database. | ||
*/ | ||
async addDocuments( | ||
documents: Document[], | ||
documentOptions?: QdrantAddDocumentOptions | ||
customPayloads?: QdrantCustomPayload[], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is breaking isn't it?
Would prefer to keep the wrapping
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, feel free to keep it 🫣 I understand the urge, but in my opinion I'm always for the correct way instead producing the legacy code of tomorrow. It's yet already complicated enough with the customPayloads on document level and the customPayload on dbConfig level.
But I understand that you don't want to have breaking changes, even a simple one like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's a fine line - I'd err towards keeping it for now with a note to change it in the next minor bump.
Sounds reasonable :)
Jacob Lee ***@***.***> schrieb am Di., 29. Okt. 2024, 22:04:
… ***@***.**** commented on this pull request.
------------------------------
In libs/langchain-qdrant/src/vectorstores.ts
<#7069 (comment)>
:
> * @returns Promise that resolves when the documents have been added to the database.
*/
async addDocuments(
documents: Document[],
- documentOptions?: QdrantAddDocumentOptions
+ customPayloads?: QdrantCustomPayload[],
Yeah it's a fine line - I'd err towards keeping it for now with a note to
change it in the next minor bump.
—
Reply to this email directly, view it on GitHub
<#7069 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAADHUQ2AZQD4XSVO27MXLZ57Z5JAVCNFSM6AAAAABQUBNZVKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDIMBTGA3TQMBRGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Fixes #2756