BoxcarsAI / boxcars

Building applications with composability using Boxcars with LLM's. Inspired by LangChain.
MIT License
430 stars 39 forks source link

Fix: change SQL Boxcar to use the name of the database in the prompt #14

Closed francis closed 4 weeks ago

francis commented 1 year ago

This should be pretty straight forward. The current prompt does not use the name of the database anywhere.

It probably should go in the action description area:

> Entering Zero Shot#run
multiply the total number of tickets by 2 pi?
Prompt after formatting:
Answer the following questions as best you can. You have access to the following actions:

Calculator: useful for when you need to answer questions about math
SQLdatabase: useful for when you need to query a SQL database

Use the following format:

Question: the input question you must answer
Thought: you should always think about what to do
Action: the action to take, should be one of [Calculator, SQLdatabase]
Action Input: the input to the action
Observation: the result of the action
... (this Thought/Action/Action Input/Observation sequence can repeat N times)
Thought: I now know the final answer
Final Answer: the final answer to the original input question

Begin!

Question: multiply the total number of tickets by 2 pi?
Thought:
francis commented 4 weeks ago

closing for now