Artificial Intelligence, Machine Learning, Data Science, Python, Programming.
print(list(context)) print(context["table_info"]) The output: Image by the Author We can use the above to update our prompt or pass everything. Chatgpt4 context size is 128K, and we are good. prompt_with_context = chain.get_prompts()[0].partial(table_info=context["table_info"])