langchain/libs/community/langchain_community/vectorstores
Dt22 6dbf1a2de0
community[patch]: fix redis input type for index_schema field (#16874)
### Subject: Fix Type Misdeclaration for index_schema in redis/base.py

I noticed a type misdeclaration for the index_schema column in the
redis/base.py file.

When following the instructions outlined in [Redis Custom Metadata
Indexing](https://python.langchain.com/docs/integrations/vectorstores/redis)
to create our own index_schema, it leads to a Pylance type error. <br/>
**The error message indicates that Dict[str, list[Dict[str, str]]] is
incompatible with the type Optional[Union[Dict[str, str], str,
os.PathLike]].**

```
index_schema = {
    "tag": [{"name": "credit_score"}],
    "text": [{"name": "user"}, {"name": "job"}],
    "numeric": [{"name": "age"}],
}

rds, keys = Redis.from_texts_return_keys(
    texts,
    embeddings,
    metadatas=metadata,
    redis_url="redis://localhost:6379",
    index_name="users_modified",
    index_schema=index_schema,  
)
```
Therefore, I have created this pull request to rectify the type
declaration problem.

---------

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
Co-authored-by: Bagatur <baskaryan@gmail.com>
2024-03-29 18:55:54 +00:00
..
docarray community[patch]: docarray requires hnsw installation (#19416) 2024-03-22 22:39:07 +00:00
redis community[patch]: fix redis input type for index_schema field (#16874) 2024-03-29 18:55:54 +00:00
__init__.py community[minor]: Pathway vectorstore(#14859) 2024-03-29 10:50:39 -07:00
alibabacloud_opensearch.py
analyticdb.py
annoy.py community[major]: breaking change in some APIs to force users to opt-in for pickling (#18696) 2024-03-06 16:43:01 -05:00
apache_doris.py
astradb.py community: Fix deprecation version of AstraDB VectorStore (#17991) 2024-02-28 17:15:09 -05:00
atlas.py
awadb.py
azure_cosmos_db.py community[patch]: Fixing some caching issues for AzureCosmosDBSemanticCache (#18884) 2024-03-25 19:06:17 -07:00
azuresearch.py community[patch]: use semantic_configurations in AzureSearch (#19347) 2024-03-26 13:57:39 -07:00
bageldb.py
baiducloud_vector_search.py
baiduvectordb.py community[patch]: fix bugs in baiduvectordb as vectorstore (#19380) 2024-03-22 17:03:59 -07:00
bigquery_vector_search.py community[patch]: BigQueryVectorSearch JSON type unsupported for metadatas (#18234) 2024-02-28 08:19:53 -08:00
cassandra.py
chroma.py community[patch]: Fix the bug that Chroma does not specify embedding_function (#19277) 2024-03-27 11:43:38 -04:00
clarifai.py community[patch] : Tidy up and update Clarifai SDK functions (#18314) 2024-03-07 19:47:44 -08:00
clickhouse.py Add docstrings for Clickhouse class methods (#19195) 2024-03-19 04:03:12 +00:00
couchbase.py community: add Couchbase Vector Store (#18994) 2024-03-19 12:39:51 -07:00
dashvector.py community: Add partition parameter to DashVector (#19023) 2024-03-16 15:20:30 -07:00
databricks_vector_search.py
deeplake.py community[patch]: fix, better error message in deeplake vectoriser (#18397) 2024-03-01 11:21:21 -08:00
dingo.py community[patch], langchain[minor]: Add retriever self_query and score_threshold in DingoDB (#18106) 2024-03-05 15:47:29 -08:00
documentdb.py community[minor]: Add DocumentDBVectorSearch VectorStore (#17757) 2024-03-06 15:11:34 -08:00
duckdb.py community[minor]: Add DuckDB as a vectorstore (#18916) 2024-03-25 07:02:35 +00:00
ecloud_vector_search.py community[minor]: integrate China Mobile Ecloud vector search (#15298) 2024-03-27 23:02:40 +00:00
elastic_vector_search.py elasticsearch[patch], community[patch]: update references, deprecate community classes (#18506) 2024-03-06 15:09:12 -08:00
elasticsearch.py elasticsearch[patch], community[patch]: update references, deprecate community classes (#18506) 2024-03-06 15:09:12 -08:00
epsilla.py
faiss.py commnity[patch]: refactor code for faiss vectorstore, update faiss vectorstore documentation (#18092) 2024-03-11 22:33:03 -07:00
hanavector.py community[patch]: More flexible handling for entity names in vector store "HANA Cloud" (#19523) 2024-03-25 15:52:45 -07:00
hippo.py
hologres.py
infinispanvs.py community: VectorStore Infinispan, adding autoconfiguration (#18967) 2024-03-18 21:33:45 -07:00
inmemory.py community[minor]: Add InMemoryVectorStore (#19326) 2024-03-20 10:21:07 -04:00
jaguar.py
kdbai.py community: vectorstores.kdbai - Added support for when no docs are present (#18103) 2024-02-26 12:47:06 -08:00
kinetica.py Langchain vectorstore integration with Kinetica (#18102) 2024-02-26 12:46:48 -08:00
lancedb.py
lantern.py
llm_rails.py
marqo.py
matching_engine.py marked MatchingEngine as deprecated (#18585) 2024-03-05 09:34:53 -08:00
meilisearch.py community[patch]: update for compatibility with latest Meilisearch version (#18970) 2024-03-27 22:08:27 +00:00
milvus.py community[patch]: milvus will autoflush, manual flush is slowly (#19300) 2024-03-26 00:26:58 +00:00
momento_vector_index.py
mongodb_atlas.py community[patch]: Fix MongoDBAtlasVectorSearch max_marginal_relevance_search (#17971) 2024-03-01 12:17:42 -08:00
myscale.py
neo4j_vector.py community[patch]: Add the ability to pass maps to neo4j retrieval query (#19758) 2024-03-29 08:33:48 -07:00
nucliadb.py
opensearch_vector_search.py community[patch]: Opensearch delete method added - indexing supported (#18522) 2024-03-06 15:08:47 -08:00
pathway.py community[minor]: Pathway vectorstore(#14859) 2024-03-29 10:50:39 -07:00
pgembedding.py
pgvecto_rs.py
pgvector.py community[patch]: avoid creating extension PGvector while using readOnly Databases (#19268) 2024-03-26 01:25:01 +00:00
pinecone.py pinecone[patch], docs: PineconeVectorStore, release 0.0.3 (#17896) 2024-02-22 08:24:08 -08:00
qdrant.py community[patch]: implement qdrant _aembed_query and use it in other async funcs (#19155) 2024-03-15 21:20:12 +00:00
rocksetdb.py community[patch]: mmr search for Rockset vectorstore integration (#16908) 2024-03-29 18:45:22 +00:00
scann.py community[major]: breaking change in some APIs to force users to opt-in for pickling (#18696) 2024-03-06 16:43:01 -05:00
semadb.py
singlestoredb.py
sklearn.py
sqlitevss.py
starrocks.py
supabase.py
surrealdb.py community[patch]: surrealdb handle for empty metadata and allow collection names with complex characters (#17374) 2024-03-29 01:04:27 +00:00
tair.py
tencentvectordb.py
thirdai_neuraldb.py community[patch]: fix lint (#17984) 2024-02-22 15:15:27 -08:00
tidb_vector.py community[minor]: Add Initial Support for TiDB Vector Store (#15796) 2024-03-07 17:18:20 -08:00
tigris.py
tiledb.py community[major]: breaking change in some APIs to force users to opt-in for pickling (#18696) 2024-03-06 16:43:01 -05:00
timescalevector.py
typesense.py
usearch.py
utils.py
vald.py
vdms.py community[patch]: Fix bug in vdms (#19728) 2024-03-28 12:54:24 -07:00
vearch.py
vectara.py
vespa.py
vikingdb.py community[patch]: Adding validation when vector does not exist (#19698) 2024-03-28 13:58:23 -07:00
weaviate.py
xata.py
yellowbrick.py
zep.py
zilliz.py