Add searchapi as an alternative web search

Add config changes for SearchApi api key and engine

Add searchapi results json in testdata
This commit is contained in:
Rajendra Kadam
2024-08-28 15:26:33 +05:30
parent 6589450bd6
commit 7e1923fcfe
7 changed files with 504 additions and 2 deletions
+12
View File
@@ -1237,6 +1237,18 @@ TAVILY_API_KEY = PersistentConfig(
os.getenv("TAVILY_API_KEY", ""),
)
SEARCHAPI_API_KEY = PersistentConfig(
"SEARCHAPI_API_KEY",
"rag.web.search.searchapi_api_key",
os.getenv("SEARCHAPI_API_KEY", ""),
)
SEARCHAPI_ENGINE = PersistentConfig(
"SEARCHAPI_ENGINE",
"rag.web.search.searchapi_engine",
os.getenv("SEARCHAPI_ENGINE", ""),
)
RAG_WEB_SEARCH_RESULT_COUNT = PersistentConfig(
"RAG_WEB_SEARCH_RESULT_COUNT",
"rag.web.search.result_count",