Find answers from the community

C
Chris
Offline, last seen 3 months ago
Joined September 25, 2024
Heya, when trying to import SQLContextBuilder, I'm getting an ImportError.

I've tried importing SQLContextBuilder directly from the file where it's defined, but then I get an ImportError on DEFAULT_REFINE_TABLE_CONTEXT_PROMPT in default_prompts.

Is anyone else getting this error? Have upgraded to the latest package version, any other ideas for what I could try?
20 comments
j
C
Hey! Loving GPT Index, it's got so much potential as LLM become more ubiquitous!!

I've got a question on structured indexes - I'd like to query across multiple tables, but it looks like on the existing functions, you need to specify a specific table to query against. Is there a way to build the indexes so the LLM can infer or understand relationships between tables?

As an example, if I have table 1:
action_name user_id
Thing 1 99
Thing2 105

table 2
user_id user_type
99 admin
105 normal

I'd like to be able to ask "What actions have admins taken?" and receive the response " admins have done thing 1"
11 comments
1
o
j
C
d
h