Create SurrealDBStore from list of text asynchronously
afrom_texts(
cls,
texts: List[str],
embedding: Embeddings,
metadatas: Optional[List[dict]] = None,
**kwargs: Any = {}
) -> SurrealDBStore| Name | Type | Description |
|---|---|---|
texts* | List[str] | list of text to vectorize and store |
embedding* | Optional[Embeddings] | Embedding function. |
dburl* | str | SurrealDB connection url (default: "ws://localhost:8000/rpc") |
ns* | str | surrealdb namespace for the vector store. (default: "langchain") |
db* | str | surrealdb database for the vector store. (default: "database") |
collection* | str | surrealdb collection for the vector store. (default: "documents") |
(optional) db_user and db_pass* | unknown | surrealdb credentials |