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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user