raffertyuy / dbcopilot-langchain-streamlit Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Display the verbose to appreciate what's happening under the hood.
VS Code debugging is not working properly.
The app can only be started using streamlit run Hello.py
at the moment.
Large DataFrames (large csv files, etc) will easily hit the LLM token limits. Implement chunking
This error occurs very frequently.
ValueError: All arrays must be of the same length
Traceback:
File "C:\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 541, in _run_script
exec(code, module.__dict__)
File "C:\GitRepos\GH-Public\dbcopilot-langchain-streamlit\pages\1_๐งโ๐ญ_SQL_Agent.py", line 35, in <module>
Common.WriteResponse(decodedResponse)
File "C:\GitRepos\GH-Public\dbcopilot-langchain-streamlit\util\Common.py", line 86, in WriteResponse
df = pd.DataFrame(data)
^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\pandas\core\frame.py", line 736, in __init__
mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\pandas\core\internals\construction.py", line 503, in dict_to_mgr
return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\pandas\core\internals\construction.py", line 114, in arrays_to_mgr
index = _extract_index(arrays)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\pandas\core\internals\construction.py", line 677, in _extract_index
raise ValueError("All arrays must be of the same length")
Steps to Reproduce:
Categorize the first 10 customers by their country and display in a bar chart
Note that it works sometimes. The issue seems to be dependent to the LLM output. Maybe improve the prompt?
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.