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.66.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

chat_rag-0.1.66-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chat_rag-0.1.66.tar.gz
Algorithm Hash digest
SHA256 b7f5a66d93f1702457fc85b62198f96c3f0b0c900d247d5b028c7aad76b19dad
MD5 d93ff912affdfaf7f2e8a380efd856c4
BLAKE2b-256 86ce31a840e386a8da48baf2a432741bd6293c40f5dcc9b4e3aff8173375a854

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for chat_rag-0.1.66-py3-none-any.whl
Algorithm Hash digest
SHA256 881b793a67f728319241a232aeac35a5f1f83deee6969e993a141d3ce1515efa
MD5 4d01c372243a48b92fcc6a335f41367e
BLAKE2b-256 e9e0f49e7d34dcb760ac4a3e49daaa8192e449d87f3120d51d5f62eadbf20b52

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