Replies: 1 comment
-
Hello, @ExlauChen! I'm a bot designed to help you with bug fixes, answer questions, and even guide you to become a contributor. How can I assist you today? To get the document id ( const results = await pgvectorVectorStore.similaritySearch(query, limit);
const documentIds = results.map(result => result[pgvectorVectorStore.idColumnName]);
console.log(documentIds); In this example, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked other resources
Commit to Help
Example Code
Description
when I call "PGVectorStore.similaritySearch()" results are like this: [{metadata:{...},pageContent:"..."}], I want to get the document id also, how can I do that?
System Info
Beta Was this translation helpful? Give feedback.
All reactions