Skip to content

iMagist486/Chatbot-Slot-Filling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dialogue-Slot-Filling

中文 | English

✨ Overview

This project is a demo achieving entity extraction in dialogues, which can be used in AI assistant by combining with other actions.

The LLM is using OpenAI API.

Using booking flight as example.

📑 Implementation

inspiring by ujhrkzy/llm-slot-filling, this project uses the ConversationChain and ConversationBufferMemory from Langchain.

SlotMemory is a module to do entity extraction, store slot values and check information completeness, which based on ConversationBufferMemory.

Prompt and slot key in the SlotMemory can be modified according to task in other various scenarios.

🔥 Screenshot

demo

The current_slot box displays the value of each slot, provides a more intuitive way to observe the performance.

❤️ Acknowledgments

  1. langchain-ai/langchain
  2. ujhrkzy/llm-slot-filling

Releases

No releases published

Packages

No packages published

Languages