This project is using the CrewAI framework to automate the process of analyzing stocks in a local context.
CrewAI is designed to facilitate the collaboration of role-playing AI agents. In this example, these agents work together to give a complete stock analysis and investment recommendation
- Install Dependencies: Run
poetry install --no-root
. - Execute the Script: Run
python main.py
and input your idea.
This framework supports integration with local models, using Ollama
- Instantiate Ollama Model: Create an instance of the Ollama model. You can specify the model and the base URL during instantiation. For example:
from langchain.llms import Ollama
ollama_openhermes = Ollama(model="openhermes")
# Pass Ollama Model to Agents: When creating your agents within the CrewAI framework, you can pass the Ollama model as an argument to the Agent constructor. For instance:
llm=ollama_openhermes, # Ollama model passed here