A Django app for chatbot functionality.
Project description
My Django Package
My Django Package is a web application for managing and querying documents using a chatbot interface. It supports multiple file formats, extracts text from documents, and uses an AI model to answer questions based on the content of uploaded documents.
Features
- View and manage chat sessions
Installation
Prerequisites
- Python 3.11
- Django 3.2 or higher
Steps
-
Install the package:
pip install unique-log-questions
-
Set up a virtual environment:
pip install virtualenv virtualenv env # On Windows .\env\Scripts\activate # On macOS/Linux source env/bin/activate
-
Install required packages:
pip install -r requirements.txt
-
Set up the Django project:
python manage.py makemigrations python manage.py migrate python manage.py createsuperuser python manage.py runserver
-
Open your browser and navigate to:
http://127.0.0.1:8000/
This will display your Django project with the integrated
app1
app.
Usage
Usage
-
Integrate the library in your code:
settings.py:
Add
unique_log_question_app
to yourINSTALLED_APPS
list:INSTALLED_APPS = [ 'unique_log_question_app', ]
views.py:
from unique_log_question_app.views import display_log_questions # for log questions
from unique_log_question_app.views import display_unique_questions # for unique questions
from unique_log_question_app.views import delete_chat_session
from unique_log_question_app.views import delete_log_question
from unique_log_question_app.views import edit_chat_session
from unique_log_question_app.views import edit_similar_question
urls.py:
from django.urls import path
from unique_log_question_app.views import display_unique_questions, display_log_questions,delete_log_question,delete_chat_session,edit_chat_session,edit_similar_question
urlpatterns = [
path('unique_questions/', display_unique_questions, name='display_unique_questions'),
path('log_questions/', display_log_questions, name='display_log_questions'),
path('delete_unique/<int:session_id>/', delete_chat_session, name='delete_chat_session'),
path('delete_log/<int:question_id>/', delete_log_question, name='qna_delete_log'),
path('log_questions/', display_log_questions, name='display_log_answers'),
path('edit_chat_session/<int:session_id>/', edit_chat_session, name='edit_chat_session'),
path('edit_similar_question/<int:question_id>/', edit_similar_question, name='edit_similar_question'),
# other paths...
]
By following these instructions, you should be able to set up and use your Django package correctly.
Open your browser and navigate to http://127.0.0.1:8000/unique_questions/ to see your unique questions with the integrated unique_log_question_app app. Open your browser and navigate to http://127.0.0.1:8000/log_questions/ to see your log questions with the integrated unique_log_question_app app.
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 unique_log_questions-0.14.tar.gz
.
File metadata
- Download URL: unique_log_questions-0.14.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 197115f9120734e2d977f5ebc9d1ac3a0403e3520cddbf5379804a0d022a0e1c |
|
MD5 | ce2f92ed1c7335e6ea881093d9573b26 |
|
BLAKE2b-256 | 5493a2b252566f7505a759490e05f8172c57fb2b5467c03a8bf8364030ccb996 |
File details
Details for the file unique_log_questions-0.14-py3-none-any.whl
.
File metadata
- Download URL: unique_log_questions-0.14-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec5902c2dded94a32e8bf1e24295d002eed954debc9f5849709729056379524a |
|
MD5 | 887db01b65c5daa08ffc79cbe6d37341 |
|
BLAKE2b-256 | d5e178d1e4db36833b76511c551c5b6887044d112af9b379524f6616535a529b |