Skip to main content

No project description provided

Project description

ChatFAQ NLP Engine

This is the NLP Engine for ChatFAQ. It is divided in two modules:

  1. Information Retrieval: This module is responsible for retrieving the most relevant answer to a given question.
  2. Chatbot: This module is responsible for generating a response to the given question based on the retrieved answer and chat with the user.

Information Retrieval

The Retriever is the main class for the information retrieval system. It takes as input a question (query) and a context and returns the most relevant sentences from the context to the query. This is done using embeddings and the dot product to compute the similarity between the query and the context sentences.

Chatbot

Chatbot

The RetrieverAnswerer is the main class for the chatbot. It takes as input a question (query) and a context and returns a response to the query. This is done by first retrieving the most relevant sentences from the context to the query and then generating a response based on the retrieved sentences.

Publish package

PYPI test

add repository to poetry config

poetry config repositories.test-pypi https://test.pypi.org/legacy/

get token from https://test.pypi.org/manage/account/token/

store token using

poetry config pypi-token.test-pypi pypi-YYYYYYYY

PYPI production

get token from https://pypi.org/manage/account/token/

store token using

poetry config pypi-token.chat-rag pypi-XXXXXXXX

Each time you need to publish

Bump version

poetry version prerelease

or

poetry version patch

Then build

poetry build

Poetry Publish

To TestPyPi

poetry publish -r test-pypi

To PyPi

poetry publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chat_rag-0.1.70.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

chat_rag-0.1.70-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

Details for the file chat_rag-0.1.70.tar.gz.

File metadata

  • Download URL: chat_rag-0.1.70.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.5.0-35-generic

File hashes

Hashes for chat_rag-0.1.70.tar.gz
Algorithm Hash digest
SHA256 bffb11ac1332c7f257bd0122ee0ee4ecdb8e208468d7e7baaaab857ab3512486
MD5 3edf5f46e6b12ad88685376496b4eb0f
BLAKE2b-256 cf300f31ff0d5e9b996934fe1198eb0418876c4f63d2a54a037ef8a4d0a09ff9

See more details on using hashes here.

File details

Details for the file chat_rag-0.1.70-py3-none-any.whl.

File metadata

  • Download URL: chat_rag-0.1.70-py3-none-any.whl
  • Upload date:
  • Size: 42.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.5.0-35-generic

File hashes

Hashes for chat_rag-0.1.70-py3-none-any.whl
Algorithm Hash digest
SHA256 17a43369f294b8f2325f1ba2f4b7e3b7bc865e12f97e5ed45d31abb16602bc9c
MD5 924331e198c0d9dd1f6020b3e5ade8c8
BLAKE2b-256 7fe552a3485e9b01c16e95e209265e3c4bb4d2c4f6dace8eda23d392ebfe9c94

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page