Skip to content

Commit

Permalink
reduce the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
fatwang2 committed Apr 9, 2024
1 parent 8776528 commit 093953e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To use the Bing Web Search API, please visit [this link](https://www.microsoft.c
You have three options for Google Search: you can use the [SearchApi Google Search API](https://www.searchapi.io/) from SearchApi, [Serper Google Search API](https://www.serper.dev) from Serper, or opt for the [Programmable Search Engine](https://developers.google.com/custom-search) provided by Google.

### SearXNG Search
you can host your personal [SearXNG server](https://github.com/searxng/searxng), then you do not need pay for the search api. You just need provide the server address in `SEARXNG_BASE_URL`, Be sure you enable the json format for the SearXNG server.
you can host your personal [SearXNG server](https://github.com/searxng/searxng), then you do not need pay for the search api. You just need provide the server address in `SEARXNG_BASE_URL`, plz be sure you enable the json format for the SearXNG server.

## Deployment
### Zeabur
Expand Down
4 changes: 0 additions & 4 deletions search4all.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,6 @@ def search_with_searXNG(query:str,url:str):
response.raise_for_status()
search_results = response.json()

logger.info("JSON Response:")
logger.info(search_results)
pedding_urls = []

conv_links = []
Expand All @@ -431,7 +429,6 @@ def search_with_searXNG(query:str,url:str):
'url':url,
'snippet':snippet
})
logger.info(conv_links)
results = []
futures = []

Expand Down Expand Up @@ -606,7 +603,6 @@ async def get_related_questions(_app, query, contexts):
]
)
logger.info('Response received from Claude-3 model')
logger.info(f"Claude-3 response: {response}")

if response.content and len(response.content) > 0:
related = []
Expand Down

0 comments on commit 093953e

Please sign in to comment.