vanna 0.5.0__py3-none-any.whl → 0.5.1__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/qdrant/qdrant.py
CHANGED
|
@@ -79,7 +79,7 @@ class Qdrant_VectorStore(VannaBase):
|
|
|
79
79
|
self._setup_collections()
|
|
80
80
|
|
|
81
81
|
def add_question_sql(self, question: str, sql: str, **kwargs) -> str:
|
|
82
|
-
question_answer =
|
|
82
|
+
question_answer = "Question: {0}\n\nSQL: {1}".format(question, sql)
|
|
83
83
|
id = deterministic_uuid(question_answer)
|
|
84
84
|
|
|
85
85
|
self._client.upsert(
|
|
@@ -157,7 +157,7 @@ class Qdrant_VectorStore(VannaBase):
|
|
|
157
157
|
if ddl_data := self._get_all_points(DDL_COLLECTION_NAME):
|
|
158
158
|
ddl_list = [data.payload["ddl"] for data in ddl_data]
|
|
159
159
|
id_list = [
|
|
160
|
-
self._format_point_id(data.id, DDL_COLLECTION_NAME) for data in
|
|
160
|
+
self._format_point_id(data.id, DDL_COLLECTION_NAME) for data in ddl_data
|
|
161
161
|
]
|
|
162
162
|
|
|
163
163
|
df_ddl = pd.DataFrame(
|
|
@@ -172,8 +172,6 @@ class Qdrant_VectorStore(VannaBase):
|
|
|
172
172
|
|
|
173
173
|
df = pd.concat([df, df_ddl])
|
|
174
174
|
|
|
175
|
-
doc_data = self.documentation_collection.get()
|
|
176
|
-
|
|
177
175
|
if doc_data := self._get_all_points(DOCUMENTATION_COLLECTION_NAME):
|
|
178
176
|
document_list = [data.payload["documentation"] for data in doc_data]
|
|
179
177
|
id_list = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vanna
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Generate SQL queries from natural language
|
|
5
5
|
Author-email: Zain Hoda <zain@vanna.ai>
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -57,6 +57,7 @@ Requires-Dist: opensearch-dsl ; extra == "opensearch"
|
|
|
57
57
|
Requires-Dist: psycopg2-binary ; extra == "postgres"
|
|
58
58
|
Requires-Dist: db-dtypes ; extra == "postgres"
|
|
59
59
|
Requires-Dist: qdrant-client ; extra == "qdrant"
|
|
60
|
+
Requires-Dist: fastembed ; extra == "qdrant"
|
|
60
61
|
Requires-Dist: snowflake-connector-python ; extra == "snowflake"
|
|
61
62
|
Requires-Dist: tox ; extra == "test"
|
|
62
63
|
Requires-Dist: vllm ; extra == "vllm"
|
|
@@ -111,7 +112,7 @@ Vanna works in two easy steps - train a RAG "model" on your data, and then ask q
|
|
|
111
112
|
|
|
112
113
|
If you don't know what RAG is, don't worry -- you don't need to know how this works under the hood to use it. You just need to know that you "train" a model, which stores some metadata and then use it to "ask" questions.
|
|
113
114
|
|
|
114
|
-
See the [base class](src/vanna/base/base.py) for more details on how this works under the hood.
|
|
115
|
+
See the [base class](https://github.com/vanna-ai/vanna/blob/main/src/vanna/base/base.py) for more details on how this works under the hood.
|
|
115
116
|
|
|
116
117
|
## User Interfaces
|
|
117
118
|
These are some of the user interfaces that we've built using Vanna. You can use these as-is or as a starting point for your own custom interface.
|
|
@@ -304,7 +305,7 @@ Fine-Tuning
|
|
|
304
305
|
- Expose to your end users via Slackbot, web app, Streamlit app, or a custom front end.
|
|
305
306
|
|
|
306
307
|
## Extending Vanna
|
|
307
|
-
Vanna is designed to connect to any database, LLM, and vector database. There's a [VannaBase](src/vanna/base/base.py) abstract base class that defines some basic functionality. The package provides implementations for use with OpenAI and ChromaDB. You can easily extend Vanna to use your own LLM or vector database. See the [documentation](https://vanna.ai/docs/) for more details.
|
|
308
|
+
Vanna is designed to connect to any database, LLM, and vector database. There's a [VannaBase](https://github.com/vanna-ai/vanna/blob/main/src/vanna/base/base.py) abstract base class that defines some basic functionality. The package provides implementations for use with OpenAI and ChromaDB. You can easily extend Vanna to use your own LLM or vector database. See the [documentation](https://vanna.ai/docs/) for more details.
|
|
308
309
|
|
|
309
310
|
## Vanna in 100 Seconds
|
|
310
311
|
|
|
@@ -31,12 +31,12 @@ vanna/openai/openai_embeddings.py,sha256=g4pNh9LVcYP9wOoO8ecaccDFWmCUYMInebfHucA
|
|
|
31
31
|
vanna/opensearch/__init__.py,sha256=0unDevWOTs7o8S79TOHUKF1mSiuQbBUVm-7k9jV5WW4,54
|
|
32
32
|
vanna/opensearch/opensearch_vector.py,sha256=T9KH9Lw2DsGzvXL2cbW6UKindoCqlOK___1prPY1RbY,9129
|
|
33
33
|
vanna/qdrant/__init__.py,sha256=PX_OsDOiPMvwCJ2iGER1drSdQ9AyM8iN5PEBhRb6qqY,73
|
|
34
|
-
vanna/qdrant/qdrant.py,sha256=
|
|
34
|
+
vanna/qdrant/qdrant.py,sha256=OejFoHB0z0KOvTY6cR_kaXkOChFgE_qjIef4d01PAsY,11883
|
|
35
35
|
vanna/types/__init__.py,sha256=Qhn_YscKtJh7mFPCyCDLa2K8a4ORLMGVnPpTbv9uB2U,4957
|
|
36
36
|
vanna/vannadb/__init__.py,sha256=C6UkYocmO6dmzfPKZaWojN0mI5YlZZ9VIbdcquBE58A,48
|
|
37
37
|
vanna/vannadb/vannadb_vector.py,sha256=9YwTO3Lh5owWQE7KPMBqLp2EkiGV0RC1sEYhslzJzgI,6168
|
|
38
38
|
vanna/vllm/__init__.py,sha256=aNlUkF9tbURdeXAJ8ytuaaF1gYwcG3ny1MfNl_cwQYg,23
|
|
39
39
|
vanna/vllm/vllm.py,sha256=QerC3xF5eNzE_nGBDl6YrPYF4WYnjf0hHxxlDWdKX-0,2427
|
|
40
|
-
vanna-0.5.
|
|
41
|
-
vanna-0.5.
|
|
42
|
-
vanna-0.5.
|
|
40
|
+
vanna-0.5.1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
41
|
+
vanna-0.5.1.dist-info/METADATA,sha256=AH1wwjCDLl9P4v9Oq7zWW6Dx13jtpRrRVQEqwQlDWtU,11248
|
|
42
|
+
vanna-0.5.1.dist-info/RECORD,,
|
|
File without changes
|