A package to generate subqueries and follow-up questions
Project description
Subquery Generator
This package provides functionality to generate subqueries and follow-up questions for a given input question.
Installation
You can install the package with either the transformers or ollama backend:
pip install subquery[transformers]
or bash
pip install subquery[ollama]
Usage
For Transformers
from subquery import TransformersSubqueryGenerator
# Using the Transformers backend
generator = TransformersSubqueryGenerator()
result = generator.generate("What is the capital of France?")
print("Follow-up questions:", result.follow_up)
print("Subqueries:", result.subquery)
from subquery import OllamaSubqueryGenerator
# Using the Ollama backend
generator = OllamaSubqueryGenerator()
result = generator.generate("What is the capital of France?")
print("Follow-up questions:", result.follow_up)
print("Subqueries:", result.subquery)
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
subquery-0.1.0.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file subquery-0.1.0.tar.gz
.
File metadata
- Download URL: subquery-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.6 Darwin/23.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82a4e1c89b2b37730427f5c13c5a5363b78cf3b0103d93cb3f09fac0807c879a |
|
MD5 | 75b62f8b85cd4e7a3af0973a27299807 |
|
BLAKE2b-256 | 8f28f70d6adeca7872fbf40a6dcae3272c127d00b138a7db9c6b8d1f966a0f3d |
File details
Details for the file subquery-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: subquery-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.6 Darwin/23.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 473c6cb4c4deba3374a736270ad89d954c4d9f6429ac051a8cfb8c82cbaf9929 |
|
MD5 | 0f575aa89f636bd03de6fd49b154e542 |
|
BLAKE2b-256 | 5a3c48bef74569b6bbbbacf8d8607e19abf5db46f03175cde1bbfccf48305ef6 |