skillfed

llama-index-question-gen-openai

llama-index question_gen openai integration

llama-index-question-gen-openai v0.3.1 2.7M downloads/30d#2,928 on PyPI
Permissive license MIT AGING released

What it is and what it does

This package provides a question generation integration for LlamaIndex that uses OpenAI's language models to automatically create follow-up questions from documents or provided context. It wraps OpenAI's API through the llama-index ecosystem, allowing you to feed text or document content and receive generated questions suitable for Q&A systems, educational tools, or retrieval-augmented generation pipelines.

The package is a specialized component within the broader LlamaIndex framework and depends on llama-index-core, llama-index-llms-openai, and llama-index-program-openai. It requires Python 3.9 or later and a working OpenAI API connection. The aging maintenance status (441 days since last release) suggests the package may be stable but not actively developed.

Use it for:

  • Generate follow-up questions for document-based Q&A systems or chatbots.
  • Create synthetic training data for question-answering models from existing documents.
  • Build educational tools that automatically generate comprehension questions from course materials.
  • Enhance retrieval-augmented generation pipelines by generating diverse queries for document retrieval.
  • Automate test question creation from technical documentation or knowledge bases.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Generates follow-up questions from documents or context using OpenAI's language models, integrated with the LlamaIndex framework.

Yes, if you are already using LlamaIndex and need OpenAI-powered question generation. The low install friction and permissive MIT license make adoption straightforward. However, the aging maintenance status (441 days since last release) warrants checking compatibility with your current llama-index versions before committing to production use. No known vulnerabilities.

Install

llama-index-question-gen-openai on PyPI

pip

pip install llama-index-question-gen-openai

uv

uv add llama-index-question-gen-openai

poetry

poetry add llama-index-question-gen-openai

Installing llama-index-question-gen-openai

Before you install

Low install friction with pure Python wheels. Maintenance status is aging—last release was 441 days ago, though the package remains current for Python 3.9+. Depends on llama-index-core, llama-index-llms-openai, and llama-index-program-openai.

License in practice

MIT license permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license notice.

Quickstart

pip install llama-index-question-gen-openai

from llama_index_question_gen_openai import OpenAIQuestionGenerator

generator = OpenAIQuestionGenerator.from_defaults()
questions = generator.generate(context_str="Your document text here")

Requires a valid OpenAI API key in environment or passed explicitly; llama-index-llms-openai dependency must be installed and configured.

Verify before relying

  • Whether the package is actively maintained or in maintenance-only mode given the 441-day gap since last release.
  • Specific question generation capabilities and output format beyond the integration description.
  • Compatibility with recent versions of llama-index-core and llama-index-llms-openai.

Package facts

License MIT (permissive)
Python support supports the current Python release (<4.0,>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 3 — llama-index-core, llama-index-llms-openai, llama-index-program-openai
Maintenance aging — 441 days since the last release
First released
Downloads 2,709,695/month — #2,928 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: llama_index_question_gen_openai-0.3.1-py3-none-any.whl

Tags

question generation from documentsllama-index openai integrationautomated question generationfollow-up question synthesisllm-based question generationopenai question generatorcontext-aware question creation
llm-integrationquestion-generationrag

More Artificial Intelligence packages

litellm

LiteLLM provides a unified Python interface to…

permissive · top 100 on PyPI

huggingface-hub

Client library and CLI tool for downloading,…

permissive · top 100 on PyPI

langchain

LangChain provides a framework for building…

permissive · top 1,000 on PyPI

hf-xet

hf-xet provides chunk-based deduplication and…

permissive · top 1,000 on PyPI

tokenizers

Tokenizers converts raw text into token…

permissive · top 1,000 on PyPI

transformers

Transformers provides a unified framework for…

permissive · top 1,000 on PyPI

llama-index-program-openai

Integrates OpenAI-powered program synthesis…

permissive · top 5,000 on PyPI

llama-index-agent-openai

Integrates OpenAI language models with…

permissive · top 5,000 on PyPI

llama-index-multi-modal-llms-openai

Integrates OpenAI's multi-modal language models…

permissive · top 5,000 on PyPI

gepa

GEPA optimizes textual system…

permissive · top 5,000 on PyPI

llama-index-embeddings-openai

Integrates OpenAI's embedding models with…

permissive · top 5,000 on PyPI

llama-index-embeddings-azure-openai

Integrates Azure OpenAI's embedding models with…

permissive · top 15,000 on PyPI

llama-index

LlamaIndex is a data framework that connects…

permissive · top 5,000 on PyPI

llama-index-llms-openai-like

Provides a thin wrapper to use…

permissive · top 15,000 on PyPI

llama-index-llms-azure-openai

Integrates Azure OpenAI language models into…

permissive · top 15,000 on PyPI

llama-index-legacy

LlamaIndex Legacy is a data framework for…

permissive · top 5,000 on PyPI

Further reading