langchain/libs
Ian 390ef6abe3
community[minor]: Add Initial Support for TiDB Vector Store (#15796)
This pull request introduces initial support for the TiDB vector store.
The current version is basic, laying the foundation for the vector store
integration. While this implementation provides the essential features,
we plan to expand and improve the TiDB vector store support with
additional enhancements in future updates.

Upcoming Enhancements:
* Support for Vector Index Creation: To enhance the efficiency and
performance of the vector store.
* Support for max marginal relevance search. 
* Customized Table Structure Support: Recognizing the need for
flexibility, we plan for more tailored and efficient data store
solutions.

Simple use case exmaple

```python
from typing import List, Tuple
from langchain.docstore.document import Document
from langchain_community.vectorstores import TiDBVectorStore
from langchain_openai import OpenAIEmbeddings

db = TiDBVectorStore.from_texts(
    embedding=embeddings,
    texts=['Andrew like eating oranges', 'Alexandra is from England', 'Ketanji Brown Jackson is a judge'],
    table_name="tidb_vector_langchain",
    connection_string=tidb_connection_url,
    distance_strategy="cosine",
)

query = "Can you tell me about Alexandra?"
docs_with_score: List[Tuple[Document, float]] = db.similarity_search_with_score(query)
for doc, score in docs_with_score:
    print("-" * 80)
    print("Score: ", score)
    print(doc.page_content)
    print("-" * 80)
```
2024-03-07 17:18:20 -08:00
..
cli infra: make .gitignore consistent with standard python gitignore (#16828) 2024-02-12 19:43:41 -08:00
community community[minor]: Add Initial Support for TiDB Vector Store (#15796) 2024-03-07 17:18:20 -08:00
core Docs: Add custom parsing documentation and extending langchain (#18331) 2024-03-07 16:30:57 -05:00
experimental anthropic[minor]: add tool calling (#18554) 2024-03-05 08:30:16 -08:00
langchain Add dangerous parameter to requests tool (#18697) 2024-03-07 15:10:56 -05:00
partners langchain-mongodb: Standardize mongodb collection/index names in tests (#18755) 2024-03-07 17:16:04 -05:00
text-splitters docs: text splitters readme (#18359) 2024-03-01 03:00:42 +00:00