michaelthwan / searchGPT

Grounded search engine (i.e. with source reference) based on LLM / ChatGPT / OpenAI API. It supports web search, file content search etc.
MIT License
621 stars 65 forks source link

Bing and llm result cache #30

Closed panglydia closed 1 year ago

panglydia commented 1 year ago

Changes

Usage To load from cache, change main.py line 5 to True load_from_cache = True If cache is not available, API is called to fetch result instead.

Result are auto-cached after fetching. One search text will have one cache per type (e.g. bing_search/openai/goose_ai) only, overwritten by latest API call. Number of cache are limited in config.yaml line 26. max_number_of_cache: 10