Skip to content

GaboRM9/SAT-GPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ContaGPT Tax Assistance for Mexican Citizens

This application uses advanced natural language processing (NLP) and machine learning (ML) to provide Mexican citizens with user-friendly assistance on tax-related queries. Built on Node.js and utilizing the Express framework, it processes official tax documents and user queries to generate clear, concise, and helpful responses.

Features

  • CORS Configuration: Enhances security by controlling which domains can access the API.
  • Document Processing: Supports loading and processing of tax law documents for query referencing.
  • NLP and ML Integration: Utilizes OpenAI's models for understanding and responding to user queries.
  • API Endpoint: Provides a POST endpoint for receiving and processing user queries.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Node.js and npm (Node Package Manager)
  • .env file configured with your desired port (optional, defaults to 3000 if not specified)

Installation

  1. Clone the repository
    git clone <repository-url>
    
  2. Navigate to the project directory
    cd tax-assistance-app
    
  3. Install dependencies
    npm install
    
  4. Create a .env file in the root directory and specify the PORT variable (optional)
    PORT=3000
    
  5. Start the server
    npm start
    
    The server will start on the specified port, or 3000 by default.

Usage

Send a POST request to /ask with a JSON payload containing your tax-related query. For example:

{
  "input": "What is the deadline for submitting my tax return?"
}

The response will include a clear, concise, and user-friendly answer based on the processed tax law documents.

Contributing

Contributions are welcome! Please feel free to submit pull requests, report bugs, or suggest features.

Security

This application uses CORS to enhance security. For further security measures, ensure proper validation and error handling for all user inputs.

License

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

Acknowledgments

  • OpenAI for providing the GPT models and embeddings used for query processing and response generation.
  • Langchain for their suite of tools enabling efficient document processing and NLP integration.

Future Work

  • Implement caching for frequently asked queries to improve response times.
  • Explore the possibility of fine-tuning the ML model for more accurate and relevant responses.

Note: This project is aimed at providing assistance based on the official tax laws in Mexico. It is an educational tool and should not replace professional legal or tax advice.

About

Natural language processing (NLP) and machine learning (ML) API to provide Mexican citizens with user-friendly assistance on tax-related queries. Built on Node.js and utilizing the Express framework, it processes official tax documents and user queries to generate clear, concise, and helpful responses.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors