Metadata-Version: 2.1
Name: reliability_chatbot
Version: 0.31
Summary: A Django app for chatbot functionality.
Home-page: https://github.com/saini2001/chatbot_code
Author: Swati Saini
Author-email: swati@mixorg.com
Classifier: Framework :: Django
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: asgiref ==3.8.1
Requires-Dist: certifi ==2024.6.2
Requires-Dist: charset-normalizer ==3.3.2
Requires-Dist: click ==8.1.7
Requires-Dist: Django ==5.0.6
Requires-Dist: filelock ==3.15.1
Requires-Dist: fsspec ==2024.6.0
Requires-Dist: huggingface-hub ==0.23.4
Requires-Dist: idna ==3.7
Requires-Dist: inflect ==7.2.1
Requires-Dist: Jinja2 ==3.1.4
Requires-Dist: joblib ==1.4.2
Requires-Dist: MarkupSafe ==2.1.5
Requires-Dist: more-itertools ==10.3.0
Requires-Dist: mpmath ==1.3.0
Requires-Dist: networkx ==3.3
Requires-Dist: nltk ==3.8.1
Requires-Dist: numpy ==1.24.4
Requires-Dist: packaging ==24.1
Requires-Dist: pillow ==10.3.0
Requires-Dist: PyYAML ==6.0.1
Requires-Dist: regex ==2024.5.15
Requires-Dist: requests ==2.32.3
Requires-Dist: safetensors ==0.4.3
Requires-Dist: scikit-learn ==1.5.0
Requires-Dist: scipy ==1.13.1
Requires-Dist: sentence-transformers ==3.0.1
Requires-Dist: sqlparse ==0.5.0
Requires-Dist: sympy ==1.12.1
Requires-Dist: threadpoolctl ==3.5.0
Requires-Dist: tokenizers ==0.19.1
Requires-Dist: torch ==2.2.2
Requires-Dist: tqdm ==4.66.4
Requires-Dist: transformers ==4.41.2
Requires-Dist: typeguard ==4.3.0
Requires-Dist: typing-extensions ==4.12.2
Requires-Dist: urllib3 ==2.2.2

# 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:**

   ```bash
   pip install reliability-chatbot
   ```

2. **Set up a virtual environment:**

   ```bash
   pip install virtualenv

   virtualenv env

   # On Windows
   .\env\Scripts\activate

   # On macOS/Linux
   source env/bin/activate
   ```

3. **Set up the Django project:**

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

4. **Open your browser and navigate to:**

   ```plaintext
   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:

   ```python
   INSTALLED_APPS = [

       'app1',

   ]
   ```

**views.py:**

```python
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:**

```python
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.
