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. Install required packages:

    pip install -r requirements.txt
    
  4. Set up the Django project:

    python manage.py makemigrations
    python manage.py migrate
    python manage.py createsuperuser
    python manage.py runserver
    
  5. 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

  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

urls.py:

from django.urls import path
from unique_log_question_app.views import display_unique_questions, display_log_questions

urlpatterns = [
    path('unique_questions/', display_unique_questions, name='display_unique_questions'),
    path('log_questions/', display_log_questions, name='display_log_questions'),
    # 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


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

Uploaded Source

Built Distribution

unique_log_questions-0.12-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unique_log_questions-0.12.tar.gz
  • Upload date:
  • Size: 8.7 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.12.tar.gz
Algorithm Hash digest
SHA256 88a688e322e88186f4b453b107b01d077e8a2202031e7e6918e52626e64349be
MD5 cadb429541feb1d52933fdf5988a5e03
BLAKE2b-256 0fa54317cb37f1a0b1250ed58dd7523f5678a4be3f7d8edbac6a15b5d9ee12f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unique_log_questions-0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 25e4a6a270e01e3eaaeee79f133ae05692f34f67d36b533b67b7c614651e257c
MD5 529c8cdb774d73dc79fc4d439c3e04d6
BLAKE2b-256 005eda8fdea465783c3e5eb2e0b3baa9b5e1aeef057b2c086b01bf706cf9d13e

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