generated from langchain-ai/integration-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thorough rewrite and optimization of integration tests (#82)
* complete removal of SomeEmbeddings for tests * test_vectorstore_autodetect brought to rationality * test_graphvectorstore is nice now * halfway through test_vectorstore.py * tests of from_ methods of vectorstore are now good * most test_vectorstore done; missing only indexing and coreclients_init * all of graph/vectorstores brought to order * graph/vstore tests mostly hcd-compatible (wip) * wip on fixing the hcd/apikey header thing * completed rewrite of tests for graph/vectorstores * chat message histories tested nicely * deep restructuring of the caches testing * test_document_loaders under control * further improvement test document loader * with test_storage it seems everything is done now. * tiny docstr edit * make openai key into a fixture to heal compile test * clean info on IT prereqs
- Loading branch information
1 parent
80ea19c
commit 3eb73d7
Showing
20 changed files
with
3,554 additions
and
3,250 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +0,0 @@ | ||
Haa | ||
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
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 |
---|---|---|
@@ -1,13 +1,24 @@ | ||
export ASTRA_DB_APPLICATION_TOKEN="AstraCS:aaabbbccc..." | ||
export ASTRA_DB_API_ENDPOINT="https://0123...-region.apps.astra.datastax.com" | ||
export ASTRA_DB_KEYSPACE="default_keyspace" | ||
# Optional (mostly for HCD and such): | ||
# export ASTRA_DB_ENVIRONMENT="..." | ||
|
||
# required to test vectorize with SHARED_SECRET. Comment on HCD and such. | ||
export SHARED_SECRET_NAME_OPENAI="NAME_SUPPLIED_IN_ASTRA_KMS" | ||
# required to test vectorize with HEADER | ||
export OPENAI_API_KEY="sk-aaabbbccc..." | ||
|
||
# change to "1" if nvidia server-side embeddings are available for the DB | ||
export NVIDIA_VECTORIZE_AVAILABLE="0" | ||
# ASTRA DB SETUP | ||
|
||
ASTRA_DB_API_ENDPOINT=https://your_astra_db_id-your_region.apps.astra.datastax.com | ||
ASTRA_DB_APPLICATION_TOKEN=AstraCS:your_astra_db_application_token | ||
# ASTRA_DB_KEYSPACE=your_astra_db_keyspace | ||
# ASTRA_DB_ENVIRONMENT="prod" | ||
|
||
SHARED_SECRET_NAME_OPENAI="key_name_on_astra_kms" | ||
OPENAI_API_KEY="..." | ||
|
||
|
||
### For testing on HCD it will not do SHARED_SECRET vectorize and look something like: | ||
# | ||
# | ||
# | ||
# ASTRA_DB_APPLICATION_TOKEN="Cassandra:Y2Fzc2FuZHJh:Y2Fzc2FuZHJh" | ||
# ASTRA_DB_API_ENDPOINT="http://localhost:8181" | ||
# ASTRA_DB_KEYSPACE="keyspace_created_by_the_ci_for_testing" | ||
# ASTRA_DB_ENVIRONMENT="hcd" | ||
# | ||
# OPENAI_API_KEY="..." | ||
# | ||
# | ||
# |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.