Skip to content

Trustworthy question-answering AI plugin for chatbots in the social sector with advanced content performance analysis.

License

Notifications You must be signed in to change notification settings

IDinsight/ask-a-question

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

logo logo

Developer Docs | Features | Usage | Architecture | Funders and Partners

Ask A Question is a free and open-source tool created to help non-profit organizations, governments in developing nations, and social sector organizations use Large Language Models for responding to citizen inquiries in their native languages.

πŸ€Έβ€β™€οΈ Features

❓ LLM-powered search

Match your questions to content in the database using embeddings from LLMs.

πŸ€– LLM responses

Craft a custom reponse to the question using LLM chat and the content in your database

πŸ”Œ Integrate with your own chatbot

Connect to your own chatbot on platforms like Turn.io, Glific, and Typebot using our APIs.

πŸ“š Manage content

Use the AAQ App to add, edit, and delete content in the database (Sign up for a demo here)

🚨 Message Triaging

Identify urgent or important messages based on your own criteria.

πŸ§‘β€πŸ’Ό Content manager dashboard

See which content is the most sought after, the kinds of questions that receive poor feedback, identify missing content, and more

🚧 Upcoming

πŸ’¬ Conversation capability

Refine or clarify your question through conversation

πŸ“Ή Multimedia content

Respond with not just text but voice, images, and videos as well.

πŸ§‘β€πŸ’» Engineering dashboard

Monitor uptime, response rates, throughput HTTP reponse codes and more

Note

Looking for other features? Please raise an issue with [FEATURE REQUEST] before the title.

Usage

To get answers from your database of contents, you can use the /search endpoint. This endpoint returns the following:

  • Search results: Finds the most similar content in the database using cosine distance between embeddings.
  • (Optionally) LLM generated response: Crafts a custom response using LLM chat using the most similar content.

See docs or API docs for more details and other API endpoints.

❓ Simple content search

curl -X 'POST' \
  'https://[DOMAIN]/api/search' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer <BEARER TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{
  "query_text": "how are you?",
  "generate_llm_response": false,
  "query_metadata": {}
}'

πŸ€– With LLM response

The query looks the same as above, except generate_llm_response is set to true:

curl -X 'POST' \
  'https://[DOMAIN]/api/search' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer <BEARER TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{
  "query_text": "this is my question",
  "generate_llm_response": true,
  "query_metadata": {}
}'

πŸ“š Manage content

You can access the admin console at

https://[DOMAIN]/

Architecture

We use docker-compose to orchestrate containers with a reverse proxy that manages all incoming traffic to the service. The database and LiteLLM proxy are only accessed by the core app.

Flow

Documentation

See here for full documentation.

Funders and Partners

google_dot_org