/text_summary

The Text Summary is a service designed to summarize text content using the Cohere AI summarization model.

Primary LanguageJavaScript

Text Summary

The Text Summary is a service designed to summarize text content using the Cohere AI summarization model. This API provides endpoints for text summarization, storing summarized data, retrieving historical data, and clearing the stored history.

Features

  • Summarize text content using Cohere AI summarization.
  • Store summarized data along with the original text.
  • Retrieve historical summarized data.
  • Clear stored historical data.

Technologies Used

  • React.js
  • Node.js
  • Express.js
  • Tailwindcss
  • MongoDB (Mongoose ORM)
  • Cohere AI API

ScreenshotS

image image

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/rohit-sama/text-summary-api.git
  2. Navigate to the project directory:

    cd text-summary/frontend
    cd text-summary/backend
  3. Install dependencies:

    npm install
  4. Set up environment variables:

    Create a .env file in the root directory and add the following variables:

    MONGO_URL=your_mongodb_connection_string
    COHERE_API_KEY=your_cohere_api_key
    
  5. Run the server:

    cd backend
    nodemon server.js
    cd ..
    cd frontend
    npm run dev
  6. Access the API endpoints:

    • Summarize text: POST /summarize-text/v2
    • Get historical data: GET /api-data
    • Clear historical data: DELETE /clear-history

Contributors