No project description provided
Project description
ChatFAQ NLP Engine
This is the NLP Engine for ChatFAQ. It is divided in two modules:
- Information Retrieval: This module is responsible for retrieving the most relevant answer to a given question.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file chat_rag-0.1.75.tar.gz
.
File metadata
- Download URL: chat_rag-0.1.75.tar.gz
- Upload date:
- Size: 28.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.5.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93a2844936b896deea050496736d28d041f9d9fc21f362877fcff6479a11be77 |
|
MD5 | 50e87b4f273b65697be33d9b99a8bc80 |
|
BLAKE2b-256 | 8318aed2e935ffd223efa30bd79e6125995f5e996d892a37677bb94d1d252bc6 |
File details
Details for the file chat_rag-0.1.75-py3-none-any.whl
.
File metadata
- Download URL: chat_rag-0.1.75-py3-none-any.whl
- Upload date:
- Size: 40.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.5.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6dad853883fde39847fc75e501c8136a87a72a00397b5bc593b2de14b1cd5d0 |
|
MD5 | 33532619b6be36d3aa6b968a5623d443 |
|
BLAKE2b-256 | a98989336ef446c8b054979f329bab5aa572ea50866b002e23d48c81bffbdedf |