Coder Social home page Coder Social logo

patel-rupin2000 / invoice-data-service-llama Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 258 KB

A Simple chat bot portal where user can upload invoice PDF and ask relevant question about the data in that PDF to ChatBot

License: MIT License

HTML 9.20% CSS 15.23% JavaScript 43.08% Python 32.49%

invoice-data-service-llama's Introduction

invoice-data-service-llama

A Simple chat bot portal where user can upload invoice PDF and ask relevant question about the data in that PDF to ChatBot

Invoice Data Service (Llama)

Welcome to the Invoice Data Service (Llama) repository! This service provides functionalities for processing invoices and answering questions related to the processed data using advanced language models.

Features

  • Invoice Processing: Upload invoices in PDF format and process them to extract relevant information.
  • Question Answering: Ask questions about the processed data and get relevant answers.
  • Semantic Search: Perform semantic searches on the processed data to retrieve relevant documents.

Technologies Used

  • FastAPI: A modern, fast (high-performance) web framework for building APIs with Python 3.7+.
  • Hugging Face Transformers: An open-source library that provides thousands of pre-trained models for Natural Language Understanding (NLU) and Natural Language Generation (NLG) tasks.
  • FAISS: A library for efficient similarity search and clustering of dense vectors.
  • PyPDF2: A pure-Python library built as a PDF toolkit.
  • YAML: A human-readable data serialization format.

Installation

To set up the Invoice Data Service locally, follow these steps:

  1. Clone this repository: git clone https://github.com/patel-rupin2000/invoice-data-service-llama.git

  2. Install the dependencies: pip install -r requirements.txt

  3. Run the application: uvicorn main:app --reload

Usage

Upload Invoice

To upload an invoice, send a POST request to /upload_invoice/, providing the invoice file as form data.

Example:

curl -X 'POST'
'http://localhost:8000/upload_invoice/'
-H 'accept: application/json'
-H 'Content-Type: multipart/form-data'
-F 'invoice=@/path/to/invoice.pdf'

Ask Question

To ask a question about the processed data, send a POST request to /ask_question/, providing the question as form data. Optionally, you can enable semantic search by setting the semantic_search parameter to true.

Example:

curl -X 'POST'
'http://localhost:8000/ask_question/'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
"question": "What is the total amount?",
"semantic_search": true
}'

Configuration

The configuration for the service is stored in config.yml. You can modify this file to adjust various parameters such as data paths, model settings, and more.

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Feel free to reach out to the maintainers for any questions or support related to the Invoice Data Service. Happy coding! ๐Ÿš€

invoice-data-service-llama's People

Contributors

patel-rupin2000 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.