Code Monkey home page Code Monkey logo

bambooai's People

Contributors

eltociear avatar murtuza-chawala avatar pgalko avatar pnmartinez 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

bambooai's Issues

Can not import `bambooai` without setting `OPENAI_API_KEY`

Problem

Recent versions of openai lib require the OPENAI_API_KEY on openai.OpenAI() init.

This cascades down to bambooai on the following line (see traceback below):

openai_client = openai.OpenAI()

Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import bambooai
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\USER\AppData\Roaming\Python\Python311\site-packages\bambooai\__init__.py", line 2, in <module>
    from .bambooai import BambooAI
  File "C:\Users\USER\AppData\Roaming\Python\Python311\site-packages\bambooai\bambooai.py", line 15, in <module>
    from . import models, prompts, func_calls, qa_retrieval, google_search, reg_ex, log_manager, output_manager, utils
  File "C:\Users\USER\AppData\Roaming\Python\Python311\site-packages\bambooai\google_search.py", line 10, in <module>
    openai_client = openai.OpenAI()
                    ^^^^^^^^^^^^^^^
  File "C:\Users\USER\AppData\Roaming\Python\Python311\site-packages\openai\_client.py", line 104, in __init__
    raise OpenAIError(
openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

Suggested solution

Since google_search.py may not be needed, maybe we can do a conditional import.

I will try to implement a fix on the weekend following best practices (conditional imports usually are not).

No feeback for the user while correcting code

Problem

When code corrections are triggered, the user is left waiting without any feedback on CLI about current status of the process (image below).

Solution

Output from the LLMs while correcting the code in between corrections would prevent the user from thinking the process has halted or crashed (green region in image below).

This is particularly troublesome doing inference on slow setups (such as local LLMs on laptops, like Llama3 8b).

imagen

Very High Token Consumption

Hi, there first of all this is an amazing project which you have built

But it seems that for each query even the basic ones token usage is in 40-50k
fopr queries based on personal .csv data (.csv data record contains 30 records only0
Any suggestions on how to reduce the token usage

Issue in having a Conversation. (Conversational Memory not enabled)

Hi @pgalko,

Whenever I ask another question it seems to not take in the context of the previous question and answer and gives me a fresh new response.

I'd like to have memory enabled so that I can have a conversation with it.

Note - I am running the Bamboo AI Agent in a for-loop to enable memory
And also have set max_conversations=2.

This is my configuration
bamboo = BambooAI(df,llm='gpt-3.5-turbo-0613',max_conversations=2, debug=False, vector_db=False, exploratory=False, llm_switch=False, search_tool=False)

for _ in range(0,2):
user_input = input("Dear User Please Enter your query: ")
#How many rows are present from the dataset
bamboo.pd_agent_converse(user_input)

I am sure you have some solution, am I missing something?
Thank you.

Azure Open AI models

How should I configure/use the model from Azure Open AI? to use this application

How to run with Code-Llama

Hi @pgalko
Id really love using the Code-Llama LLM, I have just got access to it.
I need to know a few things

  1. How can I set up with Code-Llama any example would be wonderful
  2. What is the Minimum CPU requirement for a smooth running of the application with Code-Llama
  3. Can we use Google Colab and add the Code-Llama model to it and run?

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.