mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-03 05:34:01 +00:00
This pull request support loading data from TiDB database with Langchain. A simple usage: ``` from langchain_community.document_loaders import TiDBLoader CONNECTION_STRING = "mysql+pymysql://root@127.0.0.1:4000/test" QUERY = "select id, name, description from items;" loader = TiDBLoader( connection_string=CONNECTION_STRING, query=QUERY, page_content_columns=["name", "description"], metadata_columns=["id"], ) documents = loader.load() print(documents) ``` |
||
---|---|---|
.. | ||
blob_loaders | ||
loaders | ||
parsers | ||
sample_documents | ||
test_docs | ||
__init__.py | ||
test_airbyte.py | ||
test_arcgis_loader.py | ||
test_assemblyai.py | ||
test_base.py | ||
test_bibtex.py | ||
test_bshtml.py | ||
test_confluence.py | ||
test_couchbase.py | ||
test_csv_loader.py | ||
test_cube_semantic.py | ||
test_detect_encoding.py | ||
test_directory.py | ||
test_evernote_loader.py | ||
test_generic_loader.py | ||
test_git.py | ||
test_github.py | ||
test_hugging_face.py | ||
test_imports.py | ||
test_json_loader.py | ||
test_lakefs.py | ||
test_mediawikidump.py | ||
test_mhtml.py | ||
test_mongodb.py | ||
test_obsidian.py | ||
test_onenote.py | ||
test_pebblo.py | ||
test_psychic.py | ||
test_readthedoc.py | ||
test_rspace_loader.py | ||
test_rss.py | ||
test_trello.py | ||
test_web_base.py | ||
test_youtube.py |