Find answers from the community

Updated 10 months ago

Guys, in the last Part 3 video of Jerry

Guys, in the last Part 3 video of Jerry, is there a way to add table schema and table context or its not necessary anymore? im so confused because the videos example change every week, dont we have to pass some default prompt like in part 2 !??!

Also, we dont use anymore node_mapping and VectorIndex and similarity_top_k .. all the part 3 kind of do all that by itself ? πŸ₯΄ πŸ₯΄
j
M
11 comments
@Meow Meow are you talking about the agent video?
ahh i see the confusion. these notebooks are independent and don't build on top of each other
so part 3 is mostly just building an agent pipeline around a very simple text-to-sql tool. this text-to-sql tool lacks the advanced capabilities we covered in part 2
Oh, ok so in the code of part 3, i could not add some table context with a AgentFnComponent?

if thats not possible is there anyway at least to add a general context prompt?
I think context is so crucial even with gpt4 @jerryjliu0 is there anyway way we could work that out short term ? πŸ˜„ πŸ˜„
not possible @jerryjliu0 ?
@Meow Meow sorry for the delay on this, missed the messages
yeah you should be able to! NLSQLTableQueryEngine supports injecting context
you probably want to wrap it in an AgentFnComponent and injecting relevant table context
does that not work for you?
I will try but im still a bit amateur in all this… i wish i could have an example … 😯
Add a reply
Sign up and join the conversation on Discord