You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: industries/asset_lifecycle_management_agent/src/asset_lifecycle_management_agent/retrievers/generate_sql_query_and_retrieve_tool.py
+2-47Lines changed: 2 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,6 @@
16
16
importjson
17
17
importlogging
18
18
importos
19
-
fromtypingimportOptional
20
19
21
20
frompydanticimportField, BaseModel
22
21
@@ -35,52 +34,8 @@ class GenerateSqlQueryAndRetrieveToolConfig(FunctionBaseConfig, name="generate_s
35
34
# Runtime configuration parameters
36
35
llm_name: str=Field(description="The name of the LLM to use for the function.")
37
36
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"
0 commit comments