You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/tests/unit_tests
Cahid Arda Öz cc6191cb90
community[minor]: Add support for Upstash Vector (#20824)
## Description

Adding `UpstashVectorStore` to utilize [Upstash
Vector](https://upstash.com/docs/vector/overall/getstarted)!

#17012 was opened to add Upstash Vector to langchain but was closed to
wait for filtering. Now filtering is added to Upstash vector and we open
a new PR. Additionally, [embedding
feature](https://upstash.com/docs/vector/features/embeddingmodels) was
added and we add this to our vectorstore aswell.

## Dependencies

[upstash-vector](https://pypi.org/project/upstash-vector/) should be
installed to use `UpstashVectorStore`. Didn't update dependencies
because of [this comment in the previous
PR](https://github.com/langchain-ai/langchain/pull/17012#pullrequestreview-1876522450).

## Tests

Tests are added and they pass. Tests are naturally network bound since
Upstash Vector is offered through an API.

There was [a discussion in the previous PR about mocking the
unittests](https://github.com/langchain-ai/langchain/pull/17012#pullrequestreview-1891820567).
We didn't make changes to this end yet. We can update the tests if you
can explain how the tests should be mocked.

---------

Co-authored-by: ytkimirti <yusuftaha9@gmail.com>
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
Co-authored-by: Bagatur <baskaryan@gmail.com>
5 months ago
..
agent_toolkits community[patch]: import flattening fix (#20110) 5 months ago
callbacks community[minor]: add UpTrainCallbackHandler (#19956) 5 months ago
chat_loaders community[patch]: import flattening fix (#20110) 5 months ago
chat_message_histories core[patch],community[patch]: Move file chat history back to community (#20834) 5 months ago
chat_models community[minor]: add coze chat model (#20770) 5 months ago
cross_encoders
docstore community[patch]: import flattening fix (#20110) 5 months ago
document_compressors community[mionr]: add Jina Reranker in retrievers module (#19406) 5 months ago
document_loaders community[minor]: import fix (#20995) 5 months ago
document_transformers community[patch]: import flattening fix (#20110) 5 months ago
embeddings community[minor]: Unify Titan Takeoff Integrations and Adding Embedding Support (#18775) 5 months ago
examples
graphs community[minor]: add graph store implementation for apache age (#20582) 5 months ago
indexes
llms patch: remove usage of llm, chat model __call__ (#20788) 5 months ago
retrievers patch: deprecate (a)get_relevant_documents (#20477) 5 months ago
storage community[patch]: import flattening fix (#20110) 5 months ago
tools community[minor]: add mojeek search util (#20922) 5 months ago
utilities community[minor]: add Cassandra Database Toolkit (#20246) 5 months ago
utils
vectorstores community[minor]: Add support for Upstash Vector (#20824) 5 months ago
__init__.py
conftest.py
test_dependencies.py
test_imports.py
test_sql_database.py
test_sql_database_schema.py
test_sqlalchemy.py