Giter Site home page Giter Site logo

chatbot-with-db's Introduction

pip install -r requirements.txt

download the LLM model and place it in a models folder:

Folder name "LaMini-Flan-T5-248M" and download each files from huggingface of this model and save in this folder.(https://huggingface.co/MBZUAI/LaMini-Flan-T5-248M/tree/main)

The supported extensions are:

  • .csv: CSV,
  • .docx: Word Document,
  • .doc: Word Document,
  • .enex: EverNote,
  • .eml: Email,
  • .epub: EPub,
  • .html: HTML File,
  • .md: Markdown,
  • .msg: Outlook Message,
  • .odt: Open Document Text,
  • .pdf: Portable Document Format (PDF),
  • .pptx : PowerPoint Document,
  • .ppt : PowerPoint Document,
  • .txt: Text file (UTF-8),
  • .xlsx: excel file (xlsx),

use post greSQL with this credentials connection = psycopg2.connect host="localhost", port="5432", dbname="knowledge_maker", user="postgres", password="hitr"

then copy paste below details in query tool and run

-- DROP SCHEMA PUBLIC CASCADE; -- CREATE SCHEMA PUBLIC;

CREATE TABLE users ( id SERIAL PRIMARY KEY, username VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL );

CREATE TABLE sessions ( id SERIAL PRIMARY KEY, session_id VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL, time_start TIMESTAMP NOT NULL, time_end TIMESTAMP, duration INTERVAL );

CREATE TABLE uploaded_documents ( id SERIAL PRIMARY KEY, document_name VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL, project_name VARCHAR(255) NOT NULL, timestamp TIMESTAMP NOT NULL );

INSERT INTO USERS(username, password) VALUES('hi','hi');

If you find difficulty in uploading MS word documents then please convert to pdf files then again upload documents.

chatbot-with-db's People

Contributors

buzuev1234 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.