Skip to content

Commit

Permalink
fix(community): Fix logic issue (#7151)
Browse files Browse the repository at this point in the history
  • Loading branch information
clemenspeters authored Nov 5, 2024
1 parent 6ffa5f9 commit 7102edd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ yarn
Then, you will need to switch directories into `langchain-core` and build core by running:

```bash
cd ../langchain-core
cd ../../langchain-core
yarn
yarn build
```
Expand Down
12 changes: 9 additions & 3 deletions libs/langchain-community/src/vectorstores/pgvector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,15 @@ export class PGVectorStore extends VectorStore {
this.chunkSize = config.chunkSize ?? 500;
this.distanceStrategy = config.distanceStrategy ?? this.distanceStrategy;

this._verbose =
getEnvironmentVariable("LANGCHAIN_VERBOSE") === "true" ??
!!config.verbose;
const langchainVerbose = getEnvironmentVariable("LANGCHAIN_VERBOSE");

if (langchainVerbose === "true") {
this._verbose = true;
} else if (langchainVerbose === "false") {
this._verbose = false;
} else {
this._verbose = config.verbose;
}
}

get computedTableName() {
Expand Down

0 comments on commit 7102edd

Please sign in to comment.