#62 — Parse names from queries (customers, vendors, etc)
Repo: Twill-AI/twill-llm-engine State: closed | Status: done Assignee: meliascosta
Created: 2024-07-17 · Updated: 2024-07-22
Description
When a user asks a question referring to an internal entity name like a vendor name there is no way for the model to know which tables to query. To fix this we keep a list of existing entities and annotate the initial queries with the required info.
Example:
text = "How much did I spend on ylp last month?"
tagged_text = await tag_entities(text)
print(tagged_text)
Output: "How much did I spend on vendor Yelp last month?"AC:
- Model can reply correctly to “how much did I spend on Yelp?” type of questions
- The solution is robust to variations in spelling
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets