zk-rag-wikipedia Plugin
A plugin for zk-rag that enables Wikipedia content lookup functionality.
Description
This plugin provides a tool to search and retrieve content from Wikipedia articles. It can be used to enhance your RAG (Retrieval-Augmented Generation) applications with Wikipedia knowledge.
Features
- Search Wikipedia articles
- Retrieve article summaries
- Handle disambiguation pages
- Comprehensive error handling
Installation
pip install zk-rag-wikipedia
Usage
The plugin will be automatically discovered by zk-rag when installed. It provides the LookUpTopicOnWikipedia tool which can be used to retrieve information about specific topics from Wikipedia.
Example usage through zk-rag:
from zk_rag import get_tool
wikipedia_tool = get_tool("wikipedia")
result = wikipedia_tool.run("Python programming language")
print(result.title) # The article title
print(result.content) # The article summary
print(result.url) # The Wikipedia URL
Requirements
- Python >= 3.11
- mojentic
- wikipedia
Local Development
To set up this project for local development:
-
Clone the repository:
git clone https://github.com/yourusername/zk-rag-wikipedia.git cd zk-rag-wikipedia
-
Create and activate a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows, use: .venv\Scripts\activate
-
Install development dependencies:
pip install -r requirements.txt pip install -r dev-requirements.txt
-
Install the package in editable mode:
pip install -e .
Building Locally
To build the package locally:
-
Ensure you have the build dependencies:
pip install build
-
Build the package:
python -m build
This will create both wheel and source distribution in the dist/ directory.
Running Tests
To run the tests:
pytest
License
MIT License
Author
Stacey Vetzal (stacey@vetzal.com)
Metadata
Release files for zk-rag-wikipedia 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| zk_rag_wikipedia-1.1.0.tar.gz | 3.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zk_rag_wikipedia-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / zk_rag_wikipedia-1.1.0.tar.gz
| Download URL | zk_rag_wikipedia-1.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9de2ef2c88833f24f76cf01177837ee797ed026d735e585832648f06098ea817
|
|
BLAKE2b-256 checksum How to use checksums |
7569e21e633b5bd15eb39bdda537fc917997d16485b6930dec105ebeb2d39cdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 9, 2025.
Transparency logRelease files / zk_rag_wikipedia-1.1.0-py3-none-any.whl
| Download URL | zk_rag_wikipedia-1.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aee195166ff876962f26bffbf9314cab525952659a8d1dcc0f88817a8aef266f
|
|
BLAKE2b-256 checksum How to use checksums |
53208c94d7856395162e8a0df463730c4321f6a6f04b311c117c41f6d93f49d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 9, 2025.
Transparency logSecurity for zk-rag-wikipedia 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for zk_rag_wikipedia-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 9, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.