Skip to main content
Parlant Logo

Parlant Q&A: A Questions/Answers Tool Service for Parlant

Website | Introduction | Installation | Tutorial | About

PyPI - Version PyPI - Python Version Apache 2 License GitHub last commit Discord

A dynamic question-answering tool service that helps your Parlant agents provide accurate, traceable responses based on your FAQ data.

What is this?

This tool service enables your Parlant agents to answer questions based on a managed set of questions and answers that you provide.

✨ Key Features ✨

The service carefully evaluates each question against your FAQ, providing:

  • 📝 Detailed explanation of how the question was interpreted in light of the FAQ
  • 📚 References to specific source material used (question IDs and relevant quotes)
  • 🔍 Complete traceability for each response through session events in Parlant sessions (via tool events)
  • 🛡️ Protection against hallucination - if the information isn't in your knowledge base, the agent won't make up an answer

🚀 Getting Started

Install parlant-qna:

$ pip install parlant-qna

You can run the service in two ways:

# As a standalone server
parlant-qna serve

# Or as a hosted module within your Parlant server
parlant-server --module parlant_qna.module

📚 Adding FAQs

Add question/answer pairs dynamically through the CLI:

$ parlant-qna add \
    -q "What are your business hours?" \
    -a "We're open Monday through Friday, 9 AM to 5 PM Eastern Time."

⚡⚙️ How It Works

When your agent needs to answer a question, it calls the find_answer tool through the qna service. The service then:

  1. Evaluates the question for proper context and intent
  2. Searches your FAQs for relevant information
  3. Constructs an answer using only verified information
  4. Records the entire process as a tool event in the session
  5. Returns both the answer and detailed metadata about sources used

Example response:

{
  "answer": "We're open Monday through Friday, 9 AM to 5 PM Eastern Time.",
  "evaluation": "Question seeks information about operational hours, which is provided in the background information",
  "references": [
    {
      "question_id": "dja8-108fj",
      "quotes": ["Monday through Friday, 9 AM to 5 PM Eastern Time"]
    }
  ]
}

💡 Use Cases

Perfect for:

  • Building customer service agents that need accurate, verifiable answers
  • Creating internal support bots that can explain their reasoning
  • Developing agents that need to provide source references for their responses
  • Ensuring compliance by preventing agents from making up information

🤝🛠️ Contributing

We're actively developing this tool service. If you'd like to contribute, please:

  1. Check our issue tracker for current needs
  2. Join our Discord community for discussion
  3. Submit pull requests with improvements

Metadata

Release files for parlant-qna 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parlant-qna 0.2.3
File Size Uploaded
parlant_qna-0.2.3.tar.gz 18.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for parlant-qna 0.2.3
File Interpreter ABI Platform
parlant_qna-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 39.3 kB

Release files / parlant_qna-0.2.3.tar.gz

Download URL parlant_qna-0.2.3.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
17671d1995189cd038509a17f390c35d5f08e7097abad1d05e4a242d708a7f02
BLAKE2b-256 checksum
How to use checksums
a2a18ee4c27d2c417a7ffc7c89638d1bb55c41d22601e3651b359597e9e56ed5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.10.5 Darwin/23.5.0

Release files / parlant_qna-0.2.3-py3-none-any.whl

Download URL parlant_qna-0.2.3-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbb4534dd7f17f8b062c2b9b50baeb2a46e8767cf2cc68c1f601a8d781caa139
BLAKE2b-256 checksum
How to use checksums
8fe9d96b22e9515bc936957568906534aee63ebe401e74af76031a8974717c59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.10.5 Darwin/23.5.0

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page