Skip to content

Commit a73c690

Browse files
committed
Remove sql-retriever-enhancements from generate_sql_query_and_retrieve_tool.py
1 parent ad15a85 commit a73c690

File tree

1 file changed

+2
-47
lines changed

1 file changed

+2
-47
lines changed

industries/asset_lifecycle_management_agent/src/asset_lifecycle_management_agent/retrievers/generate_sql_query_and_retrieve_tool.py

Lines changed: 2 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import json
1717
import logging
1818
import os
19-
from typing import Optional
2019

2120
from pydantic import Field, BaseModel
2221

@@ -35,52 +34,8 @@ class GenerateSqlQueryAndRetrieveToolConfig(FunctionBaseConfig, name="generate_s
3534
# Runtime configuration parameters
3635
llm_name: str = Field(description="The name of the LLM to use for the function.")
3736
embedding_name: str = Field(description="The name of the embedding to use for the function.")
38-
39-
# Vector store configuration
40-
vector_store_type: str = Field(
41-
default="chromadb",
42-
description="Type of vector store: 'chromadb' or 'elasticsearch'"
43-
)
44-
vector_store_path: Optional[str] = Field(
45-
default=None,
46-
description="Path to ChromaDB vector store (required if vector_store_type='chromadb')"
47-
)
48-
elasticsearch_url: Optional[str] = Field(
49-
default=None,
50-
description="Elasticsearch URL (required if vector_store_type='elasticsearch', e.g., 'http://localhost:9200')"
51-
)
52-
elasticsearch_index_name: str = Field(
53-
default="vanna_vectors",
54-
description="Elasticsearch index name (used if vector_store_type='elasticsearch')"
55-
)
56-
elasticsearch_username: Optional[str] = Field(
57-
default=None,
58-
description="Elasticsearch username for basic auth (optional)"
59-
)
60-
elasticsearch_password: Optional[str] = Field(
61-
default=None,
62-
description="Elasticsearch password for basic auth (optional)"
63-
)
64-
elasticsearch_api_key: Optional[str] = Field(
65-
default=None,
66-
description="Elasticsearch API key for authentication (optional)"
67-
)
68-
69-
# Database configuration
70-
db_connection_string_or_path: str = Field(
71-
description=(
72-
"Database connection (path for SQLite, connection string for others). Format depends on db_type:\n"
73-
"- sqlite: Path to .db file (e.g., './database.db')\n"
74-
"- postgres: Connection string (e.g., 'postgresql://user:pass@host:port/db')\n"
75-
"- sql: SQLAlchemy connection string (e.g., 'mysql+pymysql://user:pass@host/db')"
76-
)
77-
)
78-
db_type: str = Field(
79-
default="sqlite",
80-
description="Type of database: 'sqlite', 'postgres', or 'sql' (generic SQL via SQLAlchemy)"
81-
)
82-
83-
# Output configuration
37+
vector_store_path: str = Field(description="The path to the vector store to use for the function.")
38+
db_path: str = Field(description="The path to the SQL database to use for the function.")
8439
output_folder: str = Field(description="The path to the output folder to use for the function.")
8540
vanna_training_data_path: str = Field(description="The path to the YAML file containing Vanna training data.")
8641

0 commit comments

Comments
 (0)