Skip to main content

VersaCore Library

Project description

VersaCore

The VersaCore Python library

Installation

pip install versacore

Web Article Summarize Query API

This project provides an API to summarize or query articles from a given URL using the Large Language Model (LLM). The API can be used with various models and APIs, such as lmstudio.

Usage

Summarize an Article

To summarize an article from a URL:

python webArticleSummariseQuery.py --url "https://example.com/article" --model "your_desired_model"

The summarized content will be printed to the console.

Query an Article

To query an article with a specific question:

python webArticleSummariseQuery.py --url "https://example.com/article" --model "your_desired_model" --query "What is the main point of this article?"

The answer to your question will be printed to the console.

Running the API Server

To run the Flask server and access the API, use:

python webArticleSummariseQuery.py --url "https://example.com/article" --model "your_desired_model" [--api "your_desired_api"] [--port 5001]

The API will be available at http://localhost:5001. You can make POST requests to /summarize or /query endpoints, providing the required parameters in JSON format.

For example, using a tool like curl:

curl -X POST -H "Content-Type: application/json" -d '{"url": "https://example.com/article", "model": "your_desired_model"}' http://localhost:5001/summarize

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

versacore-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

VersaCore-0.1.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file versacore-0.1.0.tar.gz.

File metadata

  • Download URL: versacore-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for versacore-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a9fabd7787c8f4f03799d016687a0f047eb7016b2d36a1d73171f02c4c855b8d
MD5 72243abd3425ebe791e2c607b5191764
BLAKE2b-256 192a9fae27de250b9402a59740d5ea44108da17d546402165743a09a775bfb1b

See more details on using hashes here.

File details

Details for the file VersaCore-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: VersaCore-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for VersaCore-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 efcb41fdc75eb305596a9107008054b457f6d845e38d52cbf60a4212b4f82745
MD5 b81b0bd0d0b0a62ac4880ce95fae4dee
BLAKE2b-256 ea55d5ffa82773081ac81f8ef3104ba0d8ee323a5deddaa32ea12484001eacd4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page