mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 06:23:20 +00:00
community[patch]: docstrings (#16810)
- added missed docstrings - formated docstrings to the consistent form
This commit is contained in:
@@ -25,6 +25,8 @@ V = TypeVar("V")
|
||||
|
||||
|
||||
class AstraDBBaseStore(Generic[V], BaseStore[str, V], ABC):
|
||||
"""Base class for the DataStax AstraDB data store."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
collection_name: str,
|
||||
@@ -79,6 +81,7 @@ class AstraDBBaseStore(Generic[V], BaseStore[str, V], ABC):
|
||||
|
||||
class AstraDBStore(AstraDBBaseStore[Any]):
|
||||
"""BaseStore implementation using DataStax AstraDB as the underlying store.
|
||||
|
||||
The value type can be any type serializable by json.dumps.
|
||||
Can be used to store embeddings with the CacheBackedEmbeddings.
|
||||
Documents in the AstraDB collection will have the format
|
||||
@@ -97,6 +100,7 @@ class AstraDBStore(AstraDBBaseStore[Any]):
|
||||
|
||||
class AstraDBByteStore(AstraDBBaseStore[bytes], ByteStore):
|
||||
"""ByteStore implementation using DataStax AstraDB as the underlying store.
|
||||
|
||||
The bytes values are converted to base64 encoded strings
|
||||
Documents in the AstraDB collection will have the format
|
||||
{
|
||||
|
Reference in New Issue
Block a user