Find answers from the community

s
F
Y
a
P
Updated last month

I was following this demo https github

I was following this demo - https://github.com/jerryjliu/gpt_index/blob/main/examples/struct_indices/SQLIndexDemo-ManyTables.ipynb, but hit an error while trying to query the index
Attachments
Screen_Shot_2023-02-27_at_2.07.18_PM.png
Screen_Shot_2023-02-27_at_2.07.13_PM.png
j
K
13 comments
i'm assuming you're not changing the max_input_size or anything like that?
@Krrish@LiteLLM.ai you're just following the demo itself right? let me take a look and see if there's something wrong with the code, it was working for me before i released it
ok i was able to repro (and realized there was a mistake in the nb, my bad)
will put out a fix soon
in the meantime you can try setting chunk_size_limit=512 in the derive_index_from_context call above
oh wait @Krrish@LiteLLM.ai i'm dumb
so there's a mistake in the nb
originally it's
Plain Text
context_builder.query_index_for_context(
query_str, store_context_str=True)
try
Plain Text
context_builder.query_index_for_context(table_schema_index, query_str, store_context_str=True)
i'll put out a fix to the nb right now
Add a reply
Sign up and join the conversation on Discord