Find answers from the community

Updated last year

Visual Studio Code - test_3.ipynb - CSVd...

#❓py-issues-and-help

I am facing a blocker.

This demo is about building a chat bot that works on .CSV files and also can work on SQL queries. and can answer normal questions by analysing the .CSV file
BLOCKER: I got a blocker that makes an outcome error, which the bot is unable to answer normal Query, its saying NONE as outcome for every normal Question as shown in loom video:
https://www.loom.com/share/0d5ad7be235b41a694e7845015ed0811?sid=2878c16a-182d-47b2-bf09-affa41d87d46


Here is the GitHub Link too:
https://github.com/pvchaitanya8/Workflow/blob/main/test_5.ipynb

Here is DATASET:
https://github.com/pvchaitanya8/Workflow/blob/main/mobile_prices.csv

@Logan M
L
A
2 comments
I think your retrieve_data function is incorrect. You need to have Document objects to insert into an index. Maybe try out the db loader here:
https://llamahub.ai/l/database

Also, when you load an index from storage, you'll need to add the service context again

load_index_from_storage(storage_context, service_context=service_context)

(Although tbh, I wouldn't recommend the LLM you are using. I would use gpt-3.5-turbo if you need a cheap one)
Thank you Logan!πŸ™ŒπŸ»
Add a reply
Sign up and join the conversation on Discord