Skip to main content

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

Metadata

Release files for chat-rag 0.2.14

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

Source distribution (sdist)

Source distribution for chat-rag 0.2.14
File Size Uploaded Provenance Actions
chat_rag-0.2.14.tar.gz 36.0 kB Without provenance Details for chat_rag-0.2.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chat-rag 0.2.14
File Interpreter ABI Platform Actions
chat_rag-0.2.14-py3-none-any.whl Python 3 none any Details for chat_rag-0.2.14-py3-none-any.whl

Total release size: 86.6 kB

Release files / chat_rag-0.2.14.tar.gz

Download URL chat_rag-0.2.14.tar.gz
Size 36.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d094eb83c41f7d3e0299768938ce00dc5f68bd5b4d30a6c5faa5ffce265c35e4
BLAKE2b-256 checksum
How to use checksums
b787deba4cd3433769115ea3a9da33b17016d88acd39ef7d33d1459d1a41d5e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.10.13 Linux/6.8.0-79-generic

Release files / chat_rag-0.2.14-py3-none-any.whl

Download URL chat_rag-0.2.14-py3-none-any.whl
Size 50.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a65dcebef28484bae8215f62534431c6e8cba8ccfa27f98d02e7d53dfce0734b
BLAKE2b-256 checksum
How to use checksums
40be583b559a962a0a0d5d8af3f0b8765dbe5543c8975c2923afe85dd07c216d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.10.13 Linux/6.8.0-79-generic

Security for chat-rag 0.2.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.14 This release

2 release files No provenance

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