Code Monkey home page Code Monkey logo

Comments (7)

mohitpawar473 avatar mohitpawar473 commented on July 26, 2024

Is there a fix for this?

from bambooai.

mohitpawar473 avatar mohitpawar473 commented on July 26, 2024

Handling Multiple csv files is also another question?

from bambooai.

pgalko avatar pgalko commented on July 26, 2024

It currently does not work with multiple sheets or CSVs by way of arguments. However, you can try to run it without the "df" argument (e.g., bamboo = BambooAI(debug=False, llm="gpt-4")) and instruct it like this:
"You have access to multiple CSVs with names doc1.csv, doc2.csv, doc3.csv, and they are located here: path. Here is what I want to do with them: instruction on what you want to do with them eg. merge the CSVs on the datetime column ...."
It will perform the required manipulations and remember them. This approach has worked for me, but might require a several tries to get the prompt right.

from bambooai.

mohitpawar473 avatar mohitpawar473 commented on July 26, 2024

Oh got it. Just a follow up question , this prompt/ instructions would go into my query everytime I run or will there be a prefix which will remember that I have multiple dataframes. Just wanted to know.

from bambooai.

pgalko avatar pgalko commented on July 26, 2024

You will only need to instruct it once at the beginning of the loop, and it will remember it for subsequent prompts.

Eg.

  1. Merge files
  2. Load data from the merged files into data frame
  3. Do something with data frame
  4. Do something else with the data frame
    Etc.

However when you finish the loop/chain by typing "exit", the memory is wiped and you will need the instruct it again when you start the new loop. I hope it helps.

from bambooai.

mohitpawar473 avatar mohitpawar473 commented on July 26, 2024

Understood. I think you are talking about the agent that works continuously and not the single execution one. Let me know if I am understanding correctly.

from bambooai.

pgalko avatar pgalko commented on July 26, 2024

Yes, that is correct. For single execution, you can ask it to merge the files/manipulate the data and save it as a new file. In the next execution you can use the resulting merged/manipulated file. This also reduces the token usage as previous conversations are not appended to the prompt.

from bambooai.

Related Issues (9)

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.