Replies: 1 comment
-
🤖 Hello, To find a similar array in your database using LangChain, you can use the Here is an example of how you can use this method: # Assuming `tair` is an instance of `Tair`
# and `array` is your array of 10 numbers
documents = tair.similarity_search(query=array, k=1) In this example, Here is how you can get the key: key = documents[0].metadata['key'] Please note that this assumes that the Also, please note that the For more information, you can refer to the following sources:
I hope this helps! If you have any other questions, feel free to ask. Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Can anyone tell me please how I can use it given 10 numbers to answer with similar array? My database consists of 40 (0 to 40) keys each having 100 arrays of 10 numbers from 0 to 40. Actually I need the key where the similar array was found.
Beta Was this translation helpful? Give feedback.
All reactions