Metadata-Version: 2.1
Name: searchbot
Version: 1.0.5
Summary: An AI-powered information retrieval assistant helps users answer questions based on provided context. 
Home-page: https://github.com/xialeistudio/SearchBot
Author: xialeistudio
Author-email: xialeistudio@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: annotated-types==0.7.0
Requires-Dist: anyio==4.4.0
Requires-Dist: beautifulsoup4==4.12.3
Requires-Dist: bs4==0.0.2
Requires-Dist: certifi==2024.7.4
Requires-Dist: charset-normalizer==3.3.2
Requires-Dist: distro==1.9.0
Requires-Dist: exceptiongroup==1.2.2
Requires-Dist: h11==0.14.0
Requires-Dist: httpcore==1.0.5
Requires-Dist: httpx==0.27.0
Requires-Dist: idna==3.7
Requires-Dist: jiter==0.5.0
Requires-Dist: jsonpatch==1.33
Requires-Dist: jsonpointer==3.0.0
Requires-Dist: langchain-core==0.2.32
Requires-Dist: langchain-ollama==0.1.1
Requires-Dist: langchain-openai==0.1.21
Requires-Dist: langsmith==0.1.99
Requires-Dist: ollama==0.3.1
Requires-Dist: openai==1.40.6
Requires-Dist: orjson==3.10.7
Requires-Dist: packaging==24.1
Requires-Dist: pydantic==2.8.2
Requires-Dist: pydantic_core==2.20.1
Requires-Dist: PyYAML==6.0.2
Requires-Dist: regex==2024.7.24
Requires-Dist: requests==2.32.3
Requires-Dist: sniffio==1.3.1
Requires-Dist: soupsieve==2.6
Requires-Dist: tenacity==8.5.0
Requires-Dist: tiktoken==0.7.0
Requires-Dist: tqdm==4.66.5
Requires-Dist: typing_extensions==4.12.2
Requires-Dist: urllib3==2.2.2

# SearchBot

This project is an AI-powered information retrieval assistant that helps users answer questions based on provided
context. It supports multiple search bots and languages, allowing for flexible and accurate information retrieval.

[中文说明](README-CN.md)

## Supported Bots

- Baidu
- Bing

## Supported Languages

- Chinese
- English

## Example Usage

To run the search from the command line:

```sh
python3 cli.py "What is the capital of France?" --bot=baidu --lang=english --verbose
```

To use the `search` function in your code:

```python
from src import search

query = "What is the capital of France?"
bot_name = "bing"
lang = "english"
verbose = True

answer = search(query, bot_name=bot_name, lang=lang, verbose=verbose)
print(answer)
```
