forked from langchain-ai/langchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve pinecone tests (langchain-ai#2806)
Improve the integration tests for Pinecone by adding an `.env.example` file for local testing. Additionally, add some dev dependencies specifically for integration tests. This change also helps me understand how Pinecone deals with certain things, see related issues langchain-ai#2484 langchain-ai#2816
- Loading branch information
Showing
11 changed files
with
1,987 additions
and
241 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# openai | ||
# your api key from https://platform.openai.com/account/api-keys | ||
OPENAI_API_KEY= | ||
|
||
# pinecone | ||
# your api key from left menu "API Keys" in https://app.pinecone.io | ||
PINECONE_API_KEY=your_pinecone_api_key_here | ||
# your pinecone environment from left menu "API Keys" in https://app.pinecone.io | ||
PINECONE_ENVIRONMENT=us-west4-gcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
489 changes: 489 additions & 0 deletions
489
.../integration_tests/vectorstores/cassettes/test_pinecone/TestPinecone.test_from_texts.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
489 changes: 489 additions & 0 deletions
489
...sts/vectorstores/cassettes/test_pinecone/TestPinecone.test_from_texts_with_metadatas.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
557 changes: 557 additions & 0 deletions
557
..._tests/vectorstores/cassettes/test_pinecone/TestPinecone.test_from_texts_with_scores.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.