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 reliability-chatbot -t .
    
  2. Set up a virtual environment:

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

    python3.11 validate_api_key.py      # Enter api key
    python manage.py makemigrations
    python manage.py migrate
    python manage.py createsuperuser
    

Usage

  1. Integrate the library in your code: settings.py:

    Add app1 to your INSTALLED_APPS list:

    INSTALLED_APPS = [
    
        'app1',
    
    ]
    

views.py:

from app1.views import save_to_database  # to save questions and answers in the database
from app1.views import get_answer_from_database  # to check answers from database before asking llm

urls.py:

from django.urls import path
from app1.views import submit_feedback   # to send feedback for the generated or retrieved answer

urlpatterns = [
    path('submit_feedback/', submit_feedback, name='submit_feedback'),
    # other paths...
]

By following these instructions, you should be able to set up and use your Django package correctly.

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

reliability_chatbot-0.33.tar.gz (73.8 kB view details)

Uploaded Source

Built Distribution

reliability_chatbot-0.33-py3-none-any.whl (160.0 kB view details)

Uploaded Python 3

File details

Details for the file reliability_chatbot-0.33.tar.gz.

File metadata

  • Download URL: reliability_chatbot-0.33.tar.gz
  • Upload date:
  • Size: 73.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.7

File hashes

Hashes for reliability_chatbot-0.33.tar.gz
Algorithm Hash digest
SHA256 c8bd29da9e4cda8d4a4aee9ca227da5e596f38e30348e7d59c5e0b82a976bf59
MD5 6b00e79bb0acfcbc6a3c2ff305e9fceb
BLAKE2b-256 726431d071b2a089fc6efb4e208ecba2c54d42dee17fa45c190b7fb93c993cbb

See more details on using hashes here.

File details

Details for the file reliability_chatbot-0.33-py3-none-any.whl.

File metadata

File hashes

Hashes for reliability_chatbot-0.33-py3-none-any.whl
Algorithm Hash digest
SHA256 8558f437d233ec0d1672963fe3b8302874c46597fce43e8331238dde9ce0249c
MD5 3526133eef5458cd1b22d90327d089e2
BLAKE2b-256 ef913e7cbc50c9c66f9ebc92fa7674120fd3c5c4aae9502f3c1d2ebbd45b4740

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