/multi_agents
.
The example demonstrates a generic use case for an editorial agent team that works together to complete a research report on a given task.
task.json
file in the main directory.
/gpt_researcher/config/
:
llm_provider
config param.
You can also change the search engine by modifying the retriever param to others such as duckduckgo
, googleAPI
, googleSerp
, searx
and more.
Please note that you might need to sign up and obtain an API key for any of the other supported retrievers and LLM providers.
.env
file.
For Linux/Temporary Windows Setup, use the export method:
.env
file in the current gpt-researcher folder and input the keys as follows:
duckduckgo
, googleAPI
, googleSerp
, searx
, or bing
. Then add the corresponding env API key as seen in the config.py file.
venv
package with the environment name <your_name>
, for example, env
. Execute the following command in the PowerShell/CMD terminal:
env
environment, install dependencies using the requirements.txt
file with the following command:
~1.7.1
Install project dependencies and simultaneously create a virtual environment for the specified project. By executing this command, Poetry reads the project’s “pyproject.toml” file to determine the required dependencies and their versions, ensuring a consistent and isolated development environment. The virtual environment allows for a clean separation of project-specific dependencies, preventing conflicts with system-wide packages and enabling more straightforward dependency management throughout the project’s lifecycle.
.env
file with your OpenAI Key or simply export it
query
argument to the GPTResearcher
class and the “custom_report” report_type
.
brew install glib gobject-introspection
In case of Linux you can install this lib using sudo apt install libglib2.0-dev
brew install pango
In case of Linux you can install this lib using sudo apt install libpango-1.0-0
brew install python@3.11
brew install pango glib gobject-introspection
pip3.11 install -r requirements.txt
python3.11 -m uvicorn main:app --reload