Loading...
Loading...
PyTiDB (pytidb) setup and usage for TiDB from Python. Covers connecting, table modeling (TableModel), CRUD, raw SQL, transactions, vector/full-text/hybrid search, auto-embedding, custom embedding functions, and reference templates/snippets (vector/hybrid/image) plus agent-oriented examples (RAG/memory/text2sql).
npx skill4agent add pingcap/agent-rules pytidbpytidbpytidbtidbx.envpython -m venv .venvextend_existingopen_tableif rows()==0guides/quickstart.mdguides/search.mdguides/demos.mdguides/agent-apps.mdguides/troubleshooting.mdguides/custom-embedding.mdtemplates/quickstart.pytemplates/crud.pytemplates/auto_embedding.pytemplates/vector_search.pytemplates/hybrid_search.pytemplates/image_search.pytemplates/image_search_data_loader.pyimage_search.pytemplates/custom_embedding_function.pyBaseEmbeddingFunctiontemplates/custom_embedding.pytemplates/rag.pytemplates/memory_lib.pytemplates/memory.pymemory_lib.pytemplates/text2sql.pyscripts/validate_connection.pySELECT 1DATABASE_URLtidbxDATABASE_URL