pgalko / bambooai Goto Github PK
View Code? Open in Web Editor NEWA lightweight library that leverages Language Models (LLMs) to enable natural language interactions, allowing you to source and converse with data.
License: MIT License
A lightweight library that leverages Language Models (LLMs) to enable natural language interactions, allowing you to source and converse with data.
License: MIT License
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):
BambooAI/bambooai/google_search.py
Line 10 in c292bda
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
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).
When code corrections are triggered, the user is left waiting without any feedback on CLI about current status of the process (image below).
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).
How should we handle excel files with multiple sheets. I have tried and I am getting error- list object has no attribute 'columns'
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
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.
How should I configure/use the model from Azure Open AI? to use this application
Hi @pgalko
Id really love using the Code-Llama LLM, I have just got access to it.
I need to know a few things
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.