mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-02 03:15:11 +00:00
partners/astradb: Use single file instead of module for AstraDBVectorStore (#17644)
This commit is contained in:
parent
691ff67096
commit
f59ddcab74
@ -1,5 +0,0 @@
|
|||||||
from langchain_astradb.vectorstores.astradb import AstraDBVectorStore
|
|
||||||
|
|
||||||
__all__ = [
|
|
||||||
"AstraDBVectorStore",
|
|
||||||
]
|
|
@ -10,7 +10,7 @@ Required to run this test:
|
|||||||
- optionally this as well (otherwise defaults are used):
|
- optionally this as well (otherwise defaults are used):
|
||||||
export ASTRA_DB_KEYSPACE="my_keyspace"
|
export ASTRA_DB_KEYSPACE="my_keyspace"
|
||||||
- optionally:
|
- optionally:
|
||||||
export SKIP_COLLECTION_DELETE="0" ("1" = no deletions, default)
|
export ASTRA_DB_SKIP_COLLECTION_DELETIONS="0" ("1" = no deletions, default)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
@ -157,7 +157,6 @@ def store_parseremb(
|
|||||||
v_store.clear()
|
v_store.clear()
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.requires("astrapy")
|
|
||||||
@pytest.mark.skipif(not _has_env_vars(), reason="Missing Astra DB env. vars")
|
@pytest.mark.skipif(not _has_env_vars(), reason="Missing Astra DB env. vars")
|
||||||
class TestAstraDBVectorStore:
|
class TestAstraDBVectorStore:
|
||||||
def test_astradb_vectorstore_create_delete(
|
def test_astradb_vectorstore_create_delete(
|
Loading…
Reference in New Issue
Block a user