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
    
  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
    
  4. Open your browser and navigate to:

    http://127.0.0.1:8000/
    

    This will display your Django project with the integrated app1 app.

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.15.tar.gz (86.4 kB view details)

Uploaded Source

Built Distribution

reliability_chatbot-0.15-py3-none-any.whl (173.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reliability_chatbot-0.15.tar.gz
  • Upload date:
  • Size: 86.4 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.15.tar.gz
Algorithm Hash digest
SHA256 3b93775f8ea62a8c4c03ae1e91e71095779d3f27756a6a0d17754a5de0f5276d
MD5 8076270e6369af750edf9bdcb13fcf38
BLAKE2b-256 8034b6d5061b74cac7e3531788298662c84c8ecf03f1ae16a8de7eb35e271a04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reliability_chatbot-0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 d673b39142225642a9c595c485c5b39ae2c4c6b9e004e6e14b316dc989c9f842
MD5 1bd5551b9c898082a2586f70d61de2ca
BLAKE2b-256 a9547f6d6440702134919af16a44e8175401b8ca5d0c438cd211c182996ea355

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