Skip to content

Add intelligent persistent history to tools/query.py #58

@gvanrossum-ms

Description

@gvanrossum-ms

It's often awkward to ask follow-up questions because the query engine doesn't understand references like "it", "she", or "the first point". It also often doesn't have the words generated by the answer generator in its index.

I haven't quite thought through the necessary architecture, but essentially it should take a phrase like "What is wrong with it" and turn it into "What is wrong with the parrot".

This could be done using a single LLM roundtrip (not using Structured RAG), feeding it just recent history (for "it", 3-4 turns might well be enough). Or we might be able to do a search in the history (both questions and answers) using a separate (internally managed) Conversation object.

Experiments are needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions