Skip to content

Commit

Permalink
feat(community): Return document ids when querying pgvector store (#6963
Browse files Browse the repository at this point in the history
)
  • Loading branch information
elliots authored Oct 11, 2024
1 parent 6d0900b commit c9c92b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/langchain-community/src/vectorstores/pgvector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ export class PGVectorStore extends VectorStore {
const document = new Document({
pageContent: doc[this.contentColumnName],
metadata: doc[this.metadataColumnName],
id: doc[this.idColumnName],
});
results.push([document, doc._distance]);
}
Expand Down

0 comments on commit c9c92b3

Please sign in to comment.