Skip to content

Please, how can I upsert a dictionary of records with Azure AI Search Collection memory datamodel. Thank you! #9878

Answered by eavanvalkenburg
selfishark asked this question in Q&A
Discussion options

You must be logged in to vote

@selfishark the built-in vector store utils does not know how to handle this scenario so I would expect some errors, particularly because it is unclear what should be embedded, should there be a vector for each message content, or one vector for all? Also depending on the data model this might not work as you seem to want to do it, if you want a single vector for all messages, then this model works, if you want a vector per message then you would have to split this into seperate records and then upsert all of them, depending on how you want to use them this might make sense, but that is up to you to decide! You can take inspiration from the vector store utils class on how to make it work …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@selfishark
Comment options

Answer selected by sophialagerkranspandey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants