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.73.tar.gz
.
File metadata
- Download URL: chat_rag-0.1.73.tar.gz
- Upload date:
- Size: 30.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81d5e49babcca14d9ad0af542978977b955926545014d1b2670e93d64b03add2 |
|
MD5 | 0a2c19ba5721ad855a6d2d904dc8a0be |
|
BLAKE2b-256 | 1f5b0733d2640782919c6401d9eced64784d3a5c42e918e94084b8869485c063 |
File details
Details for the file chat_rag-0.1.73-py3-none-any.whl
.
File metadata
- Download URL: chat_rag-0.1.73-py3-none-any.whl
- Upload date:
- Size: 43.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8c994fc20d2b600ad12c9c4ffb2fd350df6acf4c229c4a11987c54aa2274bc3 |
|
MD5 | 3f36cbb7b8a7eba8fe52742776d6f507 |
|
BLAKE2b-256 | 2339a5a6719477494c83e2a949e70784291c33e2ff921f16961936a9decad262 |