Skip to main content

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

  1. Install the package:

    pip install unique-log-questions
    
  2. Set up a virtual environment:

    pip install virtualenv
    
    virtualenv env
    
    # On Windows
    .\env\Scripts\activate
    
    # On macOS/Linux
    source env/bin/activate
    
  3. Set up the Django project:

    python manage.py makemigrations
    python manage.py migrate
    python manage.py createsuperuser
    python manage.py runserver
    

Usage

Usage

  1. Integrate the library in your code:

    settings.py:

    Add unique_log_question_app to your INSTALLED_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  # for delete unique questions
from unique_log_question_app.views import delete_log_question  # for delete log questions
from unique_log_question_app.views import edit_chat_session    # for edit chat sessions
from unique_log_question_app.views import edit_similar_question  # for edit similar questions

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'),
]

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

unique_log_questions-0.15.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

unique_log_questions-0.15-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file unique_log_questions-0.15.tar.gz.

File metadata

  • Download URL: unique_log_questions-0.15.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.3

File hashes

Hashes for unique_log_questions-0.15.tar.gz
Algorithm Hash digest
SHA256 78db2e506ba3718693f553acf5e570d0eeb66543d28c0c78244dc74688c1d18e
MD5 ac6385807d1b7ed40a182e63a2c4a7fa
BLAKE2b-256 252cf8dd521666564434733126d5a4bb048aba0d3f03be1e37cac661a72bac2c

See more details on using hashes here.

File details

Details for the file unique_log_questions-0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for unique_log_questions-0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 11c3b48aa7109b95a5d5c9e47ef2c9b7f43f7d2c086fae6630d5e8ea99b4379b
MD5 4c0bb25048ab736dd9a25b874aadaaeb
BLAKE2b-256 a3d9c5833ee9ee091858f86e77de25ece1e4793d4a65b5e4ced3e58f49ab2c8a

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