Giter Site home page Giter Site logo

crewai-experiments's Introduction

CREWAI experiments


For my experiments with CrewAI, I decided to try 3 different projects, starting from the easiest to the most complex. The aim of the experiments was to have a team of AI agents do following work for me:

  1. Examine my Startup idea
  2. Build AI newsletter with Google SERP
  3. Build AI newsletter with Reddit Scraper
  4. Email classifier [WIP]

For my experiements I've tried following LLMs:


Available through API calls:

  1. OpenAI -> GPT-4
  2. Gemini Pro

Local Models through Ollama + rating of how they performed:

  1. Mistral 7B
  • Nice, coherent results
  • Didn't understand that it should use scraping tool for the output
  • Result is a bunch of generic text from training data
  1. Mistral 7B instruct
  • Nice, coherent results, a lot of emojis
  • Didn't use any scraping tool for the output
  • Result is a bunch of generic text from training data.
  1. Open Chat 3.5 7B
  • The best and most "newsletter-y" results
  • But again, didn't use any tool, so generic content
  1. Nous Hermes 7B
  • Ok results
  • didn't use any tool
  • generic content
  1. Open Hermes 2.5 7B
  • The tone and style of writing is great
  • but generic content
  • didn't understand that it needs to use tools
  1. Starling 7B
  • Ok results
  • didn't use any tool
  • generic content
  1. Llama 2 13B
  • The only model that "understood" what the task is
  • but the text wasn't coherent enough, didn's sound like a newsletter
  1. Llama 2 13B chat
  • Didn't understand the task or produce any output
  1. Llama 2 13B text
  • Didn't understand the task or produce any output
  1. Llama 2 7B
  • not coherent
  • didn't use any tool
  • no output
  1. Llama 2 7B text
  • No actual output
  • didn't use any tool
  • generic content
  1. Llama 2 7B chat
  • Didn't use any tool
  • generic content
  1. Phi-2
  • The smallest model ran into biggest problems
  • Lost track of what it's suppose to do, no output

crewai-experiments's People

Contributors

majacinka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crewai-experiments's Issues

The startup_crew.py didn't find the openai key

Did not find openai_api_key, please add an environment variable OPENAI_API_KEY which contains it, or pass openai_api_key as a named parameter. (type=value_error)

To Load GPT-4

api = os.environ.get("sk-proj-fNk......")

How to use just gemini-pro model

I imported the .env file with gemini api key, and un # to load gemini model to agents but I'm still getting an error, could you upload or show how to just use gemini-pro model.

Exception has occurred: ValidationError
1 validation error for Agent
  Value error, 1 validation error for ConversationSummaryMemory
llm
  Can't instantiate abstract class BaseLanguageModel with abstract methods agenerate_prompt, apredict, apredict_messages, generate_prompt, invoke, predict, predict_messages (type=type_error) [type=value_error, input_value={'role': 'Market Research...***'), temperature=0.1)}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.5/v/value_error
  File "/home/dongwook/Project/personal/test.py", line 23, in <module>
    marketer = Agent(
pydantic_core._pydantic_core.ValidationError: 1 validation error for Agent
  Value error, 1 validation error for ConversationSummaryMemory
llm
  Can't instantiate abstract class BaseLanguageModel with abstract methods agenerate_prompt, apredict, apredict_messages, generate_prompt, invoke, predict, predict_messages (type=type_error) [type=value_error, input_value={'role': 'Market Research...***'), temperature=0.1)}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.5/v/value_error

What is the conclusion then ?

Have you found at least one LLM capable of calling tools ? Because I've tested mistral, dolphin-mixtral and llam3:8B and all of them are lost !

If I read correctly your benchmark none of your LLMs achieved it either.

So now what ? We dump CrewAI ? XD
Honnestly I don't see the point of using a framework that can't call tools.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.