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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file versacore-0.0.9.tar.gz
.
File metadata
- Download URL: versacore-0.0.9.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfcf0fab1a9c094ea1c0c941d4a1585ae5bee185f575675c3c7c98c8ff9e13ef |
|
MD5 | 6fd8e4a248d1fd63146c05bd3e19836e |
|
BLAKE2b-256 | f474a3c2ae0674496c9613b99de7075b1f02a40476309f3eaf372af9eedc5101 |
File details
Details for the file VersaCore-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: VersaCore-0.0.9-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38ee8919e65b7e1138e81f61ba6b84cf4e53d4bc22aabd88b7a581631fa1a5cb |
|
MD5 | 5626adb558bef3ea46543276eae013b8 |
|
BLAKE2b-256 | a94976c02cf219186093a3eca5df2c8af4f6b42aee04ea77e5e5c5070cc06c1b |