vanna 0.7.8__py3-none-any.whl → 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vanna/__init__.py +167 -395
- vanna/agents/__init__.py +7 -0
- vanna/capabilities/__init__.py +17 -0
- vanna/capabilities/agent_memory/__init__.py +21 -0
- vanna/capabilities/agent_memory/base.py +103 -0
- vanna/capabilities/agent_memory/models.py +53 -0
- vanna/capabilities/file_system/__init__.py +14 -0
- vanna/capabilities/file_system/base.py +71 -0
- vanna/capabilities/file_system/models.py +25 -0
- vanna/capabilities/sql_runner/__init__.py +13 -0
- vanna/capabilities/sql_runner/base.py +37 -0
- vanna/capabilities/sql_runner/models.py +13 -0
- vanna/components/__init__.py +92 -0
- vanna/components/base.py +11 -0
- vanna/components/rich/__init__.py +83 -0
- vanna/components/rich/containers/__init__.py +7 -0
- vanna/components/rich/containers/card.py +20 -0
- vanna/components/rich/data/__init__.py +9 -0
- vanna/components/rich/data/chart.py +17 -0
- vanna/components/rich/data/dataframe.py +93 -0
- vanna/components/rich/feedback/__init__.py +21 -0
- vanna/components/rich/feedback/badge.py +16 -0
- vanna/components/rich/feedback/icon_text.py +14 -0
- vanna/components/rich/feedback/log_viewer.py +41 -0
- vanna/components/rich/feedback/notification.py +19 -0
- vanna/components/rich/feedback/progress.py +37 -0
- vanna/components/rich/feedback/status_card.py +28 -0
- vanna/components/rich/feedback/status_indicator.py +14 -0
- vanna/components/rich/interactive/__init__.py +21 -0
- vanna/components/rich/interactive/button.py +95 -0
- vanna/components/rich/interactive/task_list.py +58 -0
- vanna/components/rich/interactive/ui_state.py +93 -0
- vanna/components/rich/specialized/__init__.py +7 -0
- vanna/components/rich/specialized/artifact.py +20 -0
- vanna/components/rich/text.py +16 -0
- vanna/components/simple/__init__.py +15 -0
- vanna/components/simple/image.py +15 -0
- vanna/components/simple/link.py +15 -0
- vanna/components/simple/text.py +11 -0
- vanna/core/__init__.py +193 -0
- vanna/core/_compat.py +19 -0
- vanna/core/agent/__init__.py +10 -0
- vanna/core/agent/agent.py +1407 -0
- vanna/core/agent/config.py +123 -0
- vanna/core/audit/__init__.py +28 -0
- vanna/core/audit/base.py +299 -0
- vanna/core/audit/models.py +131 -0
- vanna/core/component_manager.py +329 -0
- vanna/core/components.py +53 -0
- vanna/core/enhancer/__init__.py +11 -0
- vanna/core/enhancer/base.py +94 -0
- vanna/core/enhancer/default.py +118 -0
- vanna/core/enricher/__init__.py +10 -0
- vanna/core/enricher/base.py +59 -0
- vanna/core/errors.py +47 -0
- vanna/core/evaluation/__init__.py +81 -0
- vanna/core/evaluation/base.py +186 -0
- vanna/core/evaluation/dataset.py +254 -0
- vanna/core/evaluation/evaluators.py +376 -0
- vanna/core/evaluation/report.py +289 -0
- vanna/core/evaluation/runner.py +313 -0
- vanna/core/filter/__init__.py +10 -0
- vanna/core/filter/base.py +67 -0
- vanna/core/lifecycle/__init__.py +10 -0
- vanna/core/lifecycle/base.py +83 -0
- vanna/core/llm/__init__.py +16 -0
- vanna/core/llm/base.py +40 -0
- vanna/core/llm/models.py +61 -0
- vanna/core/middleware/__init__.py +10 -0
- vanna/core/middleware/base.py +69 -0
- vanna/core/observability/__init__.py +11 -0
- vanna/core/observability/base.py +88 -0
- vanna/core/observability/models.py +47 -0
- vanna/core/recovery/__init__.py +11 -0
- vanna/core/recovery/base.py +84 -0
- vanna/core/recovery/models.py +32 -0
- vanna/core/registry.py +278 -0
- vanna/core/rich_component.py +156 -0
- vanna/core/simple_component.py +27 -0
- vanna/core/storage/__init__.py +14 -0
- vanna/core/storage/base.py +46 -0
- vanna/core/storage/models.py +46 -0
- vanna/core/system_prompt/__init__.py +13 -0
- vanna/core/system_prompt/base.py +36 -0
- vanna/core/system_prompt/default.py +157 -0
- vanna/core/tool/__init__.py +18 -0
- vanna/core/tool/base.py +70 -0
- vanna/core/tool/models.py +84 -0
- vanna/core/user/__init__.py +17 -0
- vanna/core/user/base.py +29 -0
- vanna/core/user/models.py +25 -0
- vanna/core/user/request_context.py +70 -0
- vanna/core/user/resolver.py +42 -0
- vanna/core/validation.py +164 -0
- vanna/core/workflow/__init__.py +12 -0
- vanna/core/workflow/base.py +254 -0
- vanna/core/workflow/default.py +789 -0
- vanna/examples/__init__.py +1 -0
- vanna/examples/__main__.py +44 -0
- vanna/examples/anthropic_quickstart.py +80 -0
- vanna/examples/artifact_example.py +293 -0
- vanna/examples/claude_sqlite_example.py +236 -0
- vanna/examples/coding_agent_example.py +300 -0
- vanna/examples/custom_system_prompt_example.py +174 -0
- vanna/examples/default_workflow_handler_example.py +208 -0
- vanna/examples/email_auth_example.py +340 -0
- vanna/examples/evaluation_example.py +269 -0
- vanna/examples/extensibility_example.py +262 -0
- vanna/examples/minimal_example.py +67 -0
- vanna/examples/mock_auth_example.py +227 -0
- vanna/examples/mock_custom_tool.py +311 -0
- vanna/examples/mock_quickstart.py +79 -0
- vanna/examples/mock_quota_example.py +145 -0
- vanna/examples/mock_rich_components_demo.py +396 -0
- vanna/examples/mock_sqlite_example.py +223 -0
- vanna/examples/openai_quickstart.py +83 -0
- vanna/examples/primitive_components_demo.py +305 -0
- vanna/examples/quota_lifecycle_example.py +139 -0
- vanna/examples/visualization_example.py +251 -0
- vanna/integrations/__init__.py +17 -0
- vanna/integrations/anthropic/__init__.py +9 -0
- vanna/integrations/anthropic/llm.py +270 -0
- vanna/integrations/azureopenai/__init__.py +9 -0
- vanna/integrations/azureopenai/llm.py +329 -0
- vanna/integrations/azuresearch/__init__.py +7 -0
- vanna/integrations/azuresearch/agent_memory.py +413 -0
- vanna/integrations/bigquery/__init__.py +5 -0
- vanna/integrations/bigquery/sql_runner.py +81 -0
- vanna/integrations/chromadb/__init__.py +104 -0
- vanna/integrations/chromadb/agent_memory.py +416 -0
- vanna/integrations/clickhouse/__init__.py +5 -0
- vanna/integrations/clickhouse/sql_runner.py +82 -0
- vanna/integrations/duckdb/__init__.py +5 -0
- vanna/integrations/duckdb/sql_runner.py +65 -0
- vanna/integrations/faiss/__init__.py +7 -0
- vanna/integrations/faiss/agent_memory.py +431 -0
- vanna/integrations/google/__init__.py +9 -0
- vanna/integrations/google/gemini.py +370 -0
- vanna/integrations/hive/__init__.py +5 -0
- vanna/integrations/hive/sql_runner.py +87 -0
- vanna/integrations/local/__init__.py +17 -0
- vanna/integrations/local/agent_memory/__init__.py +7 -0
- vanna/integrations/local/agent_memory/in_memory.py +285 -0
- vanna/integrations/local/audit.py +59 -0
- vanna/integrations/local/file_system.py +242 -0
- vanna/integrations/local/file_system_conversation_store.py +255 -0
- vanna/integrations/local/storage.py +62 -0
- vanna/integrations/marqo/__init__.py +7 -0
- vanna/integrations/marqo/agent_memory.py +354 -0
- vanna/integrations/milvus/__init__.py +7 -0
- vanna/integrations/milvus/agent_memory.py +458 -0
- vanna/integrations/mock/__init__.py +9 -0
- vanna/integrations/mock/llm.py +65 -0
- vanna/integrations/mssql/__init__.py +5 -0
- vanna/integrations/mssql/sql_runner.py +66 -0
- vanna/integrations/mysql/__init__.py +5 -0
- vanna/integrations/mysql/sql_runner.py +92 -0
- vanna/integrations/ollama/__init__.py +7 -0
- vanna/integrations/ollama/llm.py +252 -0
- vanna/integrations/openai/__init__.py +10 -0
- vanna/integrations/openai/llm.py +267 -0
- vanna/integrations/openai/responses.py +163 -0
- vanna/integrations/opensearch/__init__.py +7 -0
- vanna/integrations/opensearch/agent_memory.py +411 -0
- vanna/integrations/oracle/__init__.py +5 -0
- vanna/integrations/oracle/sql_runner.py +75 -0
- vanna/integrations/pinecone/__init__.py +7 -0
- vanna/integrations/pinecone/agent_memory.py +329 -0
- vanna/integrations/plotly/__init__.py +5 -0
- vanna/integrations/plotly/chart_generator.py +313 -0
- vanna/integrations/postgres/__init__.py +9 -0
- vanna/integrations/postgres/sql_runner.py +112 -0
- vanna/integrations/premium/agent_memory/__init__.py +7 -0
- vanna/integrations/premium/agent_memory/premium.py +186 -0
- vanna/integrations/presto/__init__.py +5 -0
- vanna/integrations/presto/sql_runner.py +107 -0
- vanna/integrations/qdrant/__init__.py +7 -0
- vanna/integrations/qdrant/agent_memory.py +461 -0
- vanna/integrations/snowflake/__init__.py +5 -0
- vanna/integrations/snowflake/sql_runner.py +147 -0
- vanna/integrations/sqlite/__init__.py +9 -0
- vanna/integrations/sqlite/sql_runner.py +65 -0
- vanna/integrations/weaviate/__init__.py +7 -0
- vanna/integrations/weaviate/agent_memory.py +428 -0
- vanna/{ZhipuAI → legacy/ZhipuAI}/ZhipuAI_embeddings.py +11 -11
- vanna/legacy/__init__.py +403 -0
- vanna/legacy/adapter.py +463 -0
- vanna/{advanced → legacy/advanced}/__init__.py +3 -1
- vanna/{anthropic → legacy/anthropic}/anthropic_chat.py +9 -7
- vanna/{azuresearch → legacy/azuresearch}/azuresearch_vector.py +79 -41
- vanna/{base → legacy/base}/base.py +247 -223
- vanna/legacy/bedrock/__init__.py +1 -0
- vanna/{bedrock → legacy/bedrock}/bedrock_converse.py +13 -12
- vanna/{chromadb → legacy/chromadb}/chromadb_vector.py +3 -1
- vanna/legacy/cohere/__init__.py +2 -0
- vanna/{cohere → legacy/cohere}/cohere_chat.py +19 -14
- vanna/{cohere → legacy/cohere}/cohere_embeddings.py +25 -19
- vanna/{deepseek → legacy/deepseek}/deepseek_chat.py +5 -6
- vanna/legacy/faiss/__init__.py +1 -0
- vanna/{faiss → legacy/faiss}/faiss.py +113 -59
- vanna/{flask → legacy/flask}/__init__.py +84 -43
- vanna/{flask → legacy/flask}/assets.py +5 -5
- vanna/{flask → legacy/flask}/auth.py +5 -4
- vanna/{google → legacy/google}/bigquery_vector.py +75 -42
- vanna/{google → legacy/google}/gemini_chat.py +7 -3
- vanna/{hf → legacy/hf}/hf.py +0 -1
- vanna/{milvus → legacy/milvus}/milvus_vector.py +58 -35
- vanna/{mock → legacy/mock}/llm.py +0 -1
- vanna/legacy/mock/vectordb.py +67 -0
- vanna/legacy/ollama/ollama.py +110 -0
- vanna/{openai → legacy/openai}/openai_chat.py +2 -6
- vanna/legacy/opensearch/opensearch_vector.py +369 -0
- vanna/legacy/opensearch/opensearch_vector_semantic.py +200 -0
- vanna/legacy/oracle/oracle_vector.py +584 -0
- vanna/{pgvector → legacy/pgvector}/pgvector.py +42 -13
- vanna/{qdrant → legacy/qdrant}/qdrant.py +2 -6
- vanna/legacy/qianfan/Qianfan_Chat.py +170 -0
- vanna/legacy/qianfan/Qianfan_embeddings.py +36 -0
- vanna/legacy/qianwen/QianwenAI_chat.py +132 -0
- vanna/{remote.py → legacy/remote.py} +28 -26
- vanna/{utils.py → legacy/utils.py} +6 -11
- vanna/{vannadb → legacy/vannadb}/vannadb_vector.py +115 -46
- vanna/{vllm → legacy/vllm}/vllm.py +5 -6
- vanna/{weaviate → legacy/weaviate}/weaviate_vector.py +59 -40
- vanna/{xinference → legacy/xinference}/xinference.py +6 -6
- vanna/py.typed +0 -0
- vanna/servers/__init__.py +16 -0
- vanna/servers/__main__.py +8 -0
- vanna/servers/base/__init__.py +18 -0
- vanna/servers/base/chat_handler.py +65 -0
- vanna/servers/base/models.py +111 -0
- vanna/servers/base/rich_chat_handler.py +141 -0
- vanna/servers/base/templates.py +331 -0
- vanna/servers/cli/__init__.py +7 -0
- vanna/servers/cli/server_runner.py +204 -0
- vanna/servers/fastapi/__init__.py +7 -0
- vanna/servers/fastapi/app.py +163 -0
- vanna/servers/fastapi/routes.py +183 -0
- vanna/servers/flask/__init__.py +7 -0
- vanna/servers/flask/app.py +132 -0
- vanna/servers/flask/routes.py +137 -0
- vanna/tools/__init__.py +41 -0
- vanna/tools/agent_memory.py +322 -0
- vanna/tools/file_system.py +879 -0
- vanna/tools/python.py +222 -0
- vanna/tools/run_sql.py +165 -0
- vanna/tools/visualize_data.py +195 -0
- vanna/utils/__init__.py +0 -0
- vanna/web_components/__init__.py +44 -0
- vanna-2.0.0.dist-info/METADATA +485 -0
- vanna-2.0.0.dist-info/RECORD +289 -0
- vanna-2.0.0.dist-info/entry_points.txt +3 -0
- vanna/bedrock/__init__.py +0 -1
- vanna/cohere/__init__.py +0 -2
- vanna/faiss/__init__.py +0 -1
- vanna/mock/vectordb.py +0 -55
- vanna/ollama/ollama.py +0 -103
- vanna/opensearch/opensearch_vector.py +0 -392
- vanna/opensearch/opensearch_vector_semantic.py +0 -175
- vanna/oracle/oracle_vector.py +0 -585
- vanna/qianfan/Qianfan_Chat.py +0 -165
- vanna/qianfan/Qianfan_embeddings.py +0 -36
- vanna/qianwen/QianwenAI_chat.py +0 -133
- vanna-0.7.8.dist-info/METADATA +0 -408
- vanna-0.7.8.dist-info/RECORD +0 -79
- /vanna/{ZhipuAI → legacy/ZhipuAI}/ZhipuAI_Chat.py +0 -0
- /vanna/{ZhipuAI → legacy/ZhipuAI}/__init__.py +0 -0
- /vanna/{anthropic → legacy/anthropic}/__init__.py +0 -0
- /vanna/{azuresearch → legacy/azuresearch}/__init__.py +0 -0
- /vanna/{base → legacy/base}/__init__.py +0 -0
- /vanna/{chromadb → legacy/chromadb}/__init__.py +0 -0
- /vanna/{deepseek → legacy/deepseek}/__init__.py +0 -0
- /vanna/{exceptions → legacy/exceptions}/__init__.py +0 -0
- /vanna/{google → legacy/google}/__init__.py +0 -0
- /vanna/{hf → legacy/hf}/__init__.py +0 -0
- /vanna/{local.py → legacy/local.py} +0 -0
- /vanna/{marqo → legacy/marqo}/__init__.py +0 -0
- /vanna/{marqo → legacy/marqo}/marqo.py +0 -0
- /vanna/{milvus → legacy/milvus}/__init__.py +0 -0
- /vanna/{mistral → legacy/mistral}/__init__.py +0 -0
- /vanna/{mistral → legacy/mistral}/mistral.py +0 -0
- /vanna/{mock → legacy/mock}/__init__.py +0 -0
- /vanna/{mock → legacy/mock}/embedding.py +0 -0
- /vanna/{ollama → legacy/ollama}/__init__.py +0 -0
- /vanna/{openai → legacy/openai}/__init__.py +0 -0
- /vanna/{openai → legacy/openai}/openai_embeddings.py +0 -0
- /vanna/{opensearch → legacy/opensearch}/__init__.py +0 -0
- /vanna/{oracle → legacy/oracle}/__init__.py +0 -0
- /vanna/{pgvector → legacy/pgvector}/__init__.py +0 -0
- /vanna/{pinecone → legacy/pinecone}/__init__.py +0 -0
- /vanna/{pinecone → legacy/pinecone}/pinecone_vector.py +0 -0
- /vanna/{qdrant → legacy/qdrant}/__init__.py +0 -0
- /vanna/{qianfan → legacy/qianfan}/__init__.py +0 -0
- /vanna/{qianwen → legacy/qianwen}/QianwenAI_embeddings.py +0 -0
- /vanna/{qianwen → legacy/qianwen}/__init__.py +0 -0
- /vanna/{types → legacy/types}/__init__.py +0 -0
- /vanna/{vannadb → legacy/vannadb}/__init__.py +0 -0
- /vanna/{vllm → legacy/vllm}/__init__.py +0 -0
- /vanna/{weaviate → legacy/weaviate}/__init__.py +0 -0
- /vanna/{xinference → legacy/xinference}/__init__.py +0 -0
- {vanna-0.7.8.dist-info → vanna-2.0.0.dist-info}/WHEEL +0 -0
- {vanna-0.7.8.dist-info → vanna-2.0.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: vanna
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Generate SQL queries from natural language
|
|
5
|
+
Author-email: Zain Hoda <zain@vanna.ai>
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: pydantic>=2.0.0
|
|
13
|
+
Requires-Dist: click>=8.0.0
|
|
14
|
+
Requires-Dist: pandas
|
|
15
|
+
Requires-Dist: httpx>=0.28.0
|
|
16
|
+
Requires-Dist: PyYAML
|
|
17
|
+
Requires-Dist: plotly
|
|
18
|
+
Requires-Dist: tabulate
|
|
19
|
+
Requires-Dist: sqlparse
|
|
20
|
+
Requires-Dist: sqlalchemy
|
|
21
|
+
Requires-Dist: requests
|
|
22
|
+
Requires-Dist: psycopg2-binary ; extra == "all"
|
|
23
|
+
Requires-Dist: db-dtypes ; extra == "all"
|
|
24
|
+
Requires-Dist: PyMySQL ; extra == "all"
|
|
25
|
+
Requires-Dist: google-cloud-bigquery ; extra == "all"
|
|
26
|
+
Requires-Dist: snowflake-connector-python ; extra == "all"
|
|
27
|
+
Requires-Dist: duckdb ; extra == "all"
|
|
28
|
+
Requires-Dist: openai ; extra == "all"
|
|
29
|
+
Requires-Dist: qianfan ; extra == "all"
|
|
30
|
+
Requires-Dist: mistralai>=1.0.0 ; extra == "all"
|
|
31
|
+
Requires-Dist: chromadb>=1.1.0 ; extra == "all"
|
|
32
|
+
Requires-Dist: anthropic ; extra == "all"
|
|
33
|
+
Requires-Dist: zhipuai ; extra == "all"
|
|
34
|
+
Requires-Dist: marqo ; extra == "all"
|
|
35
|
+
Requires-Dist: google-generativeai ; extra == "all"
|
|
36
|
+
Requires-Dist: google-cloud-aiplatform ; extra == "all"
|
|
37
|
+
Requires-Dist: qdrant-client>=1.0.0 ; extra == "all"
|
|
38
|
+
Requires-Dist: fastembed ; extra == "all"
|
|
39
|
+
Requires-Dist: ollama ; extra == "all"
|
|
40
|
+
Requires-Dist: httpx ; extra == "all"
|
|
41
|
+
Requires-Dist: opensearch-py ; extra == "all"
|
|
42
|
+
Requires-Dist: opensearch-dsl ; extra == "all"
|
|
43
|
+
Requires-Dist: transformers ; extra == "all"
|
|
44
|
+
Requires-Dist: pinecone ; extra == "all"
|
|
45
|
+
Requires-Dist: pymilvus[model] ; extra == "all"
|
|
46
|
+
Requires-Dist: weaviate-client ; extra == "all"
|
|
47
|
+
Requires-Dist: azure-search-documents ; extra == "all"
|
|
48
|
+
Requires-Dist: azure-identity ; extra == "all"
|
|
49
|
+
Requires-Dist: azure-common ; extra == "all"
|
|
50
|
+
Requires-Dist: faiss-cpu ; extra == "all"
|
|
51
|
+
Requires-Dist: boto ; extra == "all"
|
|
52
|
+
Requires-Dist: boto3 ; extra == "all"
|
|
53
|
+
Requires-Dist: botocore ; extra == "all"
|
|
54
|
+
Requires-Dist: langchain_core ; extra == "all"
|
|
55
|
+
Requires-Dist: langchain_postgres ; extra == "all"
|
|
56
|
+
Requires-Dist: langchain-community ; extra == "all"
|
|
57
|
+
Requires-Dist: langchain-huggingface ; extra == "all"
|
|
58
|
+
Requires-Dist: xinference-client ; extra == "all"
|
|
59
|
+
Requires-Dist: anthropic ; extra == "anthropic"
|
|
60
|
+
Requires-Dist: openai ; extra == "azureopenai"
|
|
61
|
+
Requires-Dist: azure-identity ; extra == "azureopenai"
|
|
62
|
+
Requires-Dist: azure-search-documents ; extra == "azuresearch"
|
|
63
|
+
Requires-Dist: azure-identity ; extra == "azuresearch"
|
|
64
|
+
Requires-Dist: azure-common ; extra == "azuresearch"
|
|
65
|
+
Requires-Dist: fastembed ; extra == "azuresearch"
|
|
66
|
+
Requires-Dist: boto3 ; extra == "bedrock"
|
|
67
|
+
Requires-Dist: botocore ; extra == "bedrock"
|
|
68
|
+
Requires-Dist: google-cloud-bigquery ; extra == "bigquery"
|
|
69
|
+
Requires-Dist: chromadb>=1.1.0 ; extra == "chromadb"
|
|
70
|
+
Requires-Dist: clickhouse_connect ; extra == "clickhouse"
|
|
71
|
+
Requires-Dist: pytest>=7.0.0 ; extra == "dev"
|
|
72
|
+
Requires-Dist: pytest-asyncio>=0.21.0 ; extra == "dev"
|
|
73
|
+
Requires-Dist: pytest-mock>=3.10.0 ; extra == "dev"
|
|
74
|
+
Requires-Dist: pytest-cov>=4.0.0 ; extra == "dev"
|
|
75
|
+
Requires-Dist: tox>=4.0.0 ; extra == "dev"
|
|
76
|
+
Requires-Dist: mypy ; extra == "dev"
|
|
77
|
+
Requires-Dist: ruff ; extra == "dev"
|
|
78
|
+
Requires-Dist: pandas-stubs ; extra == "dev"
|
|
79
|
+
Requires-Dist: plotly-stubs ; extra == "dev"
|
|
80
|
+
Requires-Dist: types-PyYAML ; extra == "dev"
|
|
81
|
+
Requires-Dist: types-requests ; extra == "dev"
|
|
82
|
+
Requires-Dist: types-tabulate ; extra == "dev"
|
|
83
|
+
Requires-Dist: duckdb ; extra == "duckdb"
|
|
84
|
+
Requires-Dist: faiss-cpu ; extra == "faiss-cpu"
|
|
85
|
+
Requires-Dist: faiss-gpu ; extra == "faiss-gpu"
|
|
86
|
+
Requires-Dist: fastapi>=0.68.0 ; extra == "fastapi"
|
|
87
|
+
Requires-Dist: uvicorn>=0.15.0 ; extra == "fastapi"
|
|
88
|
+
Requires-Dist: flask>=2.0.0 ; extra == "flask"
|
|
89
|
+
Requires-Dist: flask-cors>=4.0.0 ; extra == "flask"
|
|
90
|
+
Requires-Dist: google-genai ; extra == "gemini"
|
|
91
|
+
Requires-Dist: google-generativeai ; extra == "google"
|
|
92
|
+
Requires-Dist: google-cloud-aiplatform ; extra == "google"
|
|
93
|
+
Requires-Dist: transformers ; extra == "hf"
|
|
94
|
+
Requires-Dist: pyhive ; extra == "hive"
|
|
95
|
+
Requires-Dist: thrift ; extra == "hive"
|
|
96
|
+
Requires-Dist: marqo ; extra == "marqo"
|
|
97
|
+
Requires-Dist: pymilvus[model] ; extra == "milvus"
|
|
98
|
+
Requires-Dist: mistralai>=1.0.0 ; extra == "mistralai"
|
|
99
|
+
Requires-Dist: pyodbc ; extra == "mssql"
|
|
100
|
+
Requires-Dist: PyMySQL ; extra == "mysql"
|
|
101
|
+
Requires-Dist: ollama ; extra == "ollama"
|
|
102
|
+
Requires-Dist: httpx ; extra == "ollama"
|
|
103
|
+
Requires-Dist: openai ; extra == "openai"
|
|
104
|
+
Requires-Dist: opensearch-py ; extra == "opensearch"
|
|
105
|
+
Requires-Dist: opensearch-dsl ; extra == "opensearch"
|
|
106
|
+
Requires-Dist: langchain-community ; extra == "opensearch"
|
|
107
|
+
Requires-Dist: langchain-huggingface ; extra == "opensearch"
|
|
108
|
+
Requires-Dist: oracledb ; extra == "oracle"
|
|
109
|
+
Requires-Dist: chromadb<1.0.0 ; extra == "oracle"
|
|
110
|
+
Requires-Dist: langchain-postgres>=0.0.12 ; extra == "pgvector"
|
|
111
|
+
Requires-Dist: pinecone ; extra == "pinecone"
|
|
112
|
+
Requires-Dist: fastembed ; extra == "pinecone"
|
|
113
|
+
Requires-Dist: psycopg2-binary ; extra == "postgres"
|
|
114
|
+
Requires-Dist: db-dtypes ; extra == "postgres"
|
|
115
|
+
Requires-Dist: pyhive ; extra == "presto"
|
|
116
|
+
Requires-Dist: thrift ; extra == "presto"
|
|
117
|
+
Requires-Dist: qdrant-client>=1.0.0 ; extra == "qdrant"
|
|
118
|
+
Requires-Dist: fastembed ; extra == "qdrant"
|
|
119
|
+
Requires-Dist: qianfan ; extra == "qianfan"
|
|
120
|
+
Requires-Dist: vanna[flask, fastapi] ; extra == "servers"
|
|
121
|
+
Requires-Dist: snowflake-connector-python ; extra == "snowflake"
|
|
122
|
+
Requires-Dist: pytest>=7.0.0 ; extra == "test"
|
|
123
|
+
Requires-Dist: pytest-asyncio>=0.21.0 ; extra == "test"
|
|
124
|
+
Requires-Dist: pytest-mock>=3.10.0 ; extra == "test"
|
|
125
|
+
Requires-Dist: pytest-cov>=4.0.0 ; extra == "test"
|
|
126
|
+
Requires-Dist: tox>=4.0.0 ; extra == "test"
|
|
127
|
+
Requires-Dist: vllm ; extra == "vllm"
|
|
128
|
+
Requires-Dist: weaviate-client ; extra == "weaviate"
|
|
129
|
+
Requires-Dist: xinference-client ; extra == "xinference-client"
|
|
130
|
+
Requires-Dist: zhipuai ; extra == "zhipuai"
|
|
131
|
+
Project-URL: Bug Tracker, https://github.com/vanna-ai/vanna/issues
|
|
132
|
+
Project-URL: Homepage, https://github.com/vanna-ai/vanna
|
|
133
|
+
Provides-Extra: all
|
|
134
|
+
Provides-Extra: anthropic
|
|
135
|
+
Provides-Extra: azureopenai
|
|
136
|
+
Provides-Extra: azuresearch
|
|
137
|
+
Provides-Extra: bedrock
|
|
138
|
+
Provides-Extra: bigquery
|
|
139
|
+
Provides-Extra: chromadb
|
|
140
|
+
Provides-Extra: clickhouse
|
|
141
|
+
Provides-Extra: dev
|
|
142
|
+
Provides-Extra: duckdb
|
|
143
|
+
Provides-Extra: faiss-cpu
|
|
144
|
+
Provides-Extra: faiss-gpu
|
|
145
|
+
Provides-Extra: fastapi
|
|
146
|
+
Provides-Extra: flask
|
|
147
|
+
Provides-Extra: gemini
|
|
148
|
+
Provides-Extra: google
|
|
149
|
+
Provides-Extra: hf
|
|
150
|
+
Provides-Extra: hive
|
|
151
|
+
Provides-Extra: marqo
|
|
152
|
+
Provides-Extra: milvus
|
|
153
|
+
Provides-Extra: mistralai
|
|
154
|
+
Provides-Extra: mssql
|
|
155
|
+
Provides-Extra: mysql
|
|
156
|
+
Provides-Extra: ollama
|
|
157
|
+
Provides-Extra: openai
|
|
158
|
+
Provides-Extra: opensearch
|
|
159
|
+
Provides-Extra: oracle
|
|
160
|
+
Provides-Extra: pgvector
|
|
161
|
+
Provides-Extra: pinecone
|
|
162
|
+
Provides-Extra: postgres
|
|
163
|
+
Provides-Extra: presto
|
|
164
|
+
Provides-Extra: qdrant
|
|
165
|
+
Provides-Extra: qianfan
|
|
166
|
+
Provides-Extra: servers
|
|
167
|
+
Provides-Extra: snowflake
|
|
168
|
+
Provides-Extra: test
|
|
169
|
+
Provides-Extra: vllm
|
|
170
|
+
Provides-Extra: weaviate
|
|
171
|
+
Provides-Extra: xinference-client
|
|
172
|
+
Provides-Extra: zhipuai
|
|
173
|
+
|
|
174
|
+
# Vanna 2.0: Turn Questions into Data Insights
|
|
175
|
+
|
|
176
|
+
**Natural language → SQL → Answers.** Now with enterprise security and user-aware permissions.
|
|
177
|
+
|
|
178
|
+
[](https://python.org)
|
|
179
|
+
[](LICENSE)
|
|
180
|
+
[](https://github.com/psf/black)
|
|
181
|
+
|
|
182
|
+
https://github.com/user-attachments/assets/476cd421-d0b0-46af-8b29-0f40c73d6d83
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+

|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## What's New in 2.0
|
|
190
|
+
|
|
191
|
+
🔐 **User-Aware at Every Layer** — Queries automatically filtered per user permissions
|
|
192
|
+
|
|
193
|
+
🎨 **Modern Web Interface** — Beautiful pre-built `<vanna-chat>` component
|
|
194
|
+
|
|
195
|
+
⚡ **Streaming Responses** — Real-time tables, charts, and progress updates
|
|
196
|
+
|
|
197
|
+
🔒 **Enterprise Security** — Row-level security, audit logs, rate limiting
|
|
198
|
+
|
|
199
|
+
🔄 **Production-Ready** — FastAPI integration, observability, lifecycle hooks
|
|
200
|
+
|
|
201
|
+
> **Upgrading from 0.x?** See the [Migration Guide](MIGRATION_GUIDE.md) | [What changed?](#migration-notes)
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Get Started
|
|
206
|
+
|
|
207
|
+
### Try it with Sample Data
|
|
208
|
+
|
|
209
|
+
[Quickstart](https://vanna.ai/docs/quick-start)
|
|
210
|
+
|
|
211
|
+
### Configure
|
|
212
|
+
|
|
213
|
+
[Configure](https://vanna.ai/docs/configure)
|
|
214
|
+
|
|
215
|
+
### Web Component
|
|
216
|
+
|
|
217
|
+
```html
|
|
218
|
+
<!-- Drop into any existing webpage -->
|
|
219
|
+
<script src="https://img.vanna.ai/vanna-components.js"></script>
|
|
220
|
+
<vanna-chat
|
|
221
|
+
sse-endpoint="https://your-api.com/chat"
|
|
222
|
+
theme="dark">
|
|
223
|
+
</vanna-chat>
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
Uses your existing cookies/JWTs. Works with React, Vue, or plain HTML.
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## What You Get
|
|
231
|
+
|
|
232
|
+
Ask a question in natural language and get back:
|
|
233
|
+
|
|
234
|
+
**1. Streaming Progress Updates**
|
|
235
|
+
|
|
236
|
+
**2. SQL Code Block (By default only shown to "admin" users)**
|
|
237
|
+
|
|
238
|
+
**3. Interactive Data Table**
|
|
239
|
+
|
|
240
|
+
**4. Charts** (Plotly visualizations)
|
|
241
|
+
|
|
242
|
+
**5. Natural Language Summary**
|
|
243
|
+
|
|
244
|
+
All streamed in real-time to your web component.
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
## Why Vanna 2.0?
|
|
249
|
+
|
|
250
|
+
### ✅ Get Started Instantly
|
|
251
|
+
* Production chat interface
|
|
252
|
+
* Custom agent with your database
|
|
253
|
+
* Embed in any webpage
|
|
254
|
+
|
|
255
|
+
### ✅ Enterprise-Ready Security
|
|
256
|
+
**User-aware at every layer** — Identity flows through system prompts, tool execution, and SQL filtering
|
|
257
|
+
**Row-level security** — Queries automatically filtered per user permissions
|
|
258
|
+
**Audit logs** — Every query tracked per user for compliance
|
|
259
|
+
**Rate limiting** — Per-user quotas via lifecycle hooks
|
|
260
|
+
|
|
261
|
+
### ✅ Beautiful Web UI Included
|
|
262
|
+
**Pre-built `<vanna-chat>` component** — No need to build your own chat interface
|
|
263
|
+
**Streaming tables & charts** — Rich components, not just text
|
|
264
|
+
**Responsive & customizable** — Works on mobile, desktop, light/dark themes
|
|
265
|
+
**Framework-agnostic** — React, Vue, plain HTML
|
|
266
|
+
|
|
267
|
+
### ✅ Works With Your Stack
|
|
268
|
+
**Any LLM:** OpenAI, Anthropic, Ollama, Azure, Google Gemini, AWS Bedrock, Mistral, Others
|
|
269
|
+
**Any Database:** PostgreSQL, MySQL, Snowflake, BigQuery, Redshift, SQLite, Oracle, SQL Server, DuckDB, ClickHouse, Others
|
|
270
|
+
**Your Auth System:** Bring your own — cookies, JWTs, OAuth tokens
|
|
271
|
+
**Your Framework:** FastAPI, Flask
|
|
272
|
+
|
|
273
|
+
### ✅ Extensible But Opinionated
|
|
274
|
+
**Custom tools** — Extend the `Tool` base class
|
|
275
|
+
**Lifecycle hooks** — Quota checking, logging, content filtering
|
|
276
|
+
**LLM middlewares** — Caching, prompt engineering
|
|
277
|
+
**Observability** — Built-in tracing and metrics
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
281
|
+
## Architecture
|
|
282
|
+
|
|
283
|
+

|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## How It Works
|
|
288
|
+
|
|
289
|
+
```mermaid
|
|
290
|
+
sequenceDiagram
|
|
291
|
+
participant U as 👤 User
|
|
292
|
+
participant W as 🌐 <vanna-chat>
|
|
293
|
+
participant S as 🐍 Your Server
|
|
294
|
+
participant A as 🤖 Agent
|
|
295
|
+
participant T as 🧰 Tools
|
|
296
|
+
|
|
297
|
+
U->>W: "Show Q4 sales"
|
|
298
|
+
W->>S: POST /api/vanna/v2/chat_sse (with auth)
|
|
299
|
+
S->>A: User(id=alice, groups=[read_sales])
|
|
300
|
+
A->>T: Execute SQL tool (user-aware)
|
|
301
|
+
T->>T: Apply row-level security
|
|
302
|
+
T->>A: Filtered results
|
|
303
|
+
A->>W: Stream: Table → Chart → Summary
|
|
304
|
+
W->>U: Display beautiful UI
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
**Key Concepts:**
|
|
308
|
+
|
|
309
|
+
1. **User Resolver** — You define how to extract user identity from requests (cookies, JWTs, etc.)
|
|
310
|
+
2. **User-Aware Tools** — Tools automatically check permissions based on user's group memberships
|
|
311
|
+
3. **Streaming Components** — Backend streams structured UI components (tables, charts) to frontend
|
|
312
|
+
4. **Built-in Web UI** — Pre-built `<vanna-chat>` component renders everything beautifully
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
## Production Setup with Your Auth
|
|
317
|
+
|
|
318
|
+
Here's a complete example integrating Vanna with your existing FastAPI app and authentication:
|
|
319
|
+
|
|
320
|
+
```python
|
|
321
|
+
from fastapi import FastAPI
|
|
322
|
+
from vanna import Agent
|
|
323
|
+
from vanna.servers.fastapi.routes import register_chat_routes
|
|
324
|
+
from vanna.servers.base import ChatHandler
|
|
325
|
+
from vanna.core.user import UserResolver, User, RequestContext
|
|
326
|
+
from vanna.integrations.anthropic import AnthropicLlmService
|
|
327
|
+
from vanna.tools import RunSqlTool
|
|
328
|
+
from vanna.integrations.sqlite import SqliteRunner
|
|
329
|
+
from vanna.core.registry import ToolRegistry
|
|
330
|
+
|
|
331
|
+
# Your existing FastAPI app
|
|
332
|
+
app = FastAPI()
|
|
333
|
+
|
|
334
|
+
# 1. Define your user resolver (using YOUR auth system)
|
|
335
|
+
class MyUserResolver(UserResolver):
|
|
336
|
+
async def resolve_user(self, request_context: RequestContext) -> User:
|
|
337
|
+
# Extract from cookies, JWTs, or session
|
|
338
|
+
token = request_context.get_header('Authorization')
|
|
339
|
+
user_data = self.decode_jwt(token) # Your existing logic
|
|
340
|
+
|
|
341
|
+
return User(
|
|
342
|
+
id=user_data['id'],
|
|
343
|
+
email=user_data['email'],
|
|
344
|
+
group_memberships=user_data['groups'] # Used for permissions
|
|
345
|
+
)
|
|
346
|
+
|
|
347
|
+
# 2. Set up agent with tools
|
|
348
|
+
llm = AnthropicLlmService(model="claude-sonnet-4-5")
|
|
349
|
+
tools = ToolRegistry()
|
|
350
|
+
tools.register(RunSqlTool(sql_runner=SqliteRunner("./data.db")))
|
|
351
|
+
|
|
352
|
+
agent = Agent(
|
|
353
|
+
llm_service=llm,
|
|
354
|
+
tool_registry=tools,
|
|
355
|
+
user_resolver=MyUserResolver()
|
|
356
|
+
)
|
|
357
|
+
|
|
358
|
+
# 3. Add Vanna routes to your app
|
|
359
|
+
chat_handler = ChatHandler(agent)
|
|
360
|
+
register_chat_routes(app, chat_handler)
|
|
361
|
+
|
|
362
|
+
# Now you have:
|
|
363
|
+
# - POST /api/vanna/v2/chat_sse (streaming endpoint)
|
|
364
|
+
# - GET / (optional web UI)
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
**Then in your frontend:**
|
|
368
|
+
```html
|
|
369
|
+
<vanna-chat sse-endpoint="/api/vanna/v2/chat_sse"></vanna-chat>
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
See [Full Documentation](https://vanna.ai/docs) for custom tools, lifecycle hooks, and advanced configuration
|
|
373
|
+
|
|
374
|
+
---
|
|
375
|
+
|
|
376
|
+
## Custom Tools
|
|
377
|
+
|
|
378
|
+
Extend Vanna with custom tools for your specific use case:
|
|
379
|
+
|
|
380
|
+
```python
|
|
381
|
+
from vanna.core.tool import Tool, ToolContext, ToolResult
|
|
382
|
+
from pydantic import BaseModel, Field
|
|
383
|
+
from typing import Type
|
|
384
|
+
|
|
385
|
+
class EmailArgs(BaseModel):
|
|
386
|
+
recipient: str = Field(description="Email recipient")
|
|
387
|
+
subject: str = Field(description="Email subject")
|
|
388
|
+
|
|
389
|
+
class EmailTool(Tool[EmailArgs]):
|
|
390
|
+
@property
|
|
391
|
+
def name(self) -> str:
|
|
392
|
+
return "send_email"
|
|
393
|
+
|
|
394
|
+
@property
|
|
395
|
+
def access_groups(self) -> list[str]:
|
|
396
|
+
return ["send_email"] # Permission check
|
|
397
|
+
|
|
398
|
+
def get_args_schema(self) -> Type[EmailArgs]:
|
|
399
|
+
return EmailArgs
|
|
400
|
+
|
|
401
|
+
async def execute(self, context: ToolContext, args: EmailArgs) -> ToolResult:
|
|
402
|
+
user = context.user # Automatically injected
|
|
403
|
+
|
|
404
|
+
# Your business logic
|
|
405
|
+
await self.email_service.send(
|
|
406
|
+
from_email=user.email,
|
|
407
|
+
to=args.recipient,
|
|
408
|
+
subject=args.subject
|
|
409
|
+
)
|
|
410
|
+
|
|
411
|
+
return ToolResult(success=True, result_for_llm=f"Email sent to {args.recipient}")
|
|
412
|
+
|
|
413
|
+
# Register your tool
|
|
414
|
+
tools.register(EmailTool())
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
---
|
|
418
|
+
|
|
419
|
+
## Advanced Features
|
|
420
|
+
|
|
421
|
+
Vanna 2.0 includes powerful enterprise features for production use:
|
|
422
|
+
|
|
423
|
+
**Lifecycle Hooks** — Add quota checking, custom logging, content filtering at key points in the request lifecycle
|
|
424
|
+
|
|
425
|
+
**LLM Middlewares** — Implement caching, prompt engineering, or cost tracking around LLM calls
|
|
426
|
+
|
|
427
|
+
**Conversation Storage** — Persist and retrieve conversation history per user
|
|
428
|
+
|
|
429
|
+
**Observability** — Built-in tracing and metrics integration
|
|
430
|
+
|
|
431
|
+
**Context Enrichers** — Add RAG, memory, or documentation to enhance agent responses
|
|
432
|
+
|
|
433
|
+
**Agent Configuration** — Control streaming, temperature, max iterations, and more
|
|
434
|
+
|
|
435
|
+
---
|
|
436
|
+
|
|
437
|
+
## Use Cases
|
|
438
|
+
|
|
439
|
+
**Vanna is ideal for:**
|
|
440
|
+
- 📊 Data analytics applications with natural language interfaces
|
|
441
|
+
- 🔐 Multi-tenant SaaS needing user-aware permissions
|
|
442
|
+
- 🎨 Teams wanting a pre-built web component + backend
|
|
443
|
+
- 🏢 Enterprise environments with security/audit requirements
|
|
444
|
+
- 📈 Applications needing rich streaming responses (tables, charts, SQL)
|
|
445
|
+
- 🔄 Integrating with existing authentication systems
|
|
446
|
+
|
|
447
|
+
---
|
|
448
|
+
|
|
449
|
+
## Community & Support
|
|
450
|
+
|
|
451
|
+
- 📖 **[Full Documentation](https://vanna.ai/docs)** — Complete guides and API reference
|
|
452
|
+
- 💡 **[GitHub Discussions](https://github.com/vanna-ai/vanna/discussions)** — Feature requests and Q&A
|
|
453
|
+
- 🐛 **[GitHub Issues](https://github.com/vanna-ai/vanna/issues)** — Bug reports
|
|
454
|
+
- 📧 **Enterprise Support** — support@vanna.ai
|
|
455
|
+
|
|
456
|
+
---
|
|
457
|
+
|
|
458
|
+
## Migration Notes
|
|
459
|
+
|
|
460
|
+
**Upgrading from Vanna 0.x?**
|
|
461
|
+
|
|
462
|
+
Vanna 2.0 is a complete rewrite focused on user-aware agents and production deployments. Key changes:
|
|
463
|
+
|
|
464
|
+
- **New API**: Agent-based instead of `VannaBase` class methods
|
|
465
|
+
- **User-aware**: Every component now knows the user identity
|
|
466
|
+
- **Streaming**: Rich UI components instead of text/dataframes
|
|
467
|
+
- **Web-first**: Built-in `<vanna-chat>` component and server
|
|
468
|
+
|
|
469
|
+
**Migration path:**
|
|
470
|
+
|
|
471
|
+
1. **Quick wrap** — Use `LegacyVannaAdapter` to wrap your existing Vanna 0.x instance and get the new web UI immediately
|
|
472
|
+
2. **Gradual migration** — Incrementally move to the new Agent API and tools
|
|
473
|
+
|
|
474
|
+
See the complete [Migration Guide](MIGRATION_GUIDE.md) for step-by-step instructions.
|
|
475
|
+
|
|
476
|
+
---
|
|
477
|
+
|
|
478
|
+
## License
|
|
479
|
+
|
|
480
|
+
MIT License — See [LICENSE](LICENSE) for details.
|
|
481
|
+
|
|
482
|
+
---
|
|
483
|
+
|
|
484
|
+
**Built with ❤️ by the Vanna team** | [Website](https://vanna.ai) | [Docs](https://vanna.ai/docs) | [Discussions](https://github.com/vanna-ai/vanna/discussions)
|
|
485
|
+
|