langgraph-tavily
Language analyser for trivia questions. Parse, classify, and score question difficulty using linguistic features.
Installation
pip install langgraph-tavily
Usage
from langgraph_tavily import TriviaAnalyser, TriviaGenerator
# Analyse a question
analyser = TriviaAnalyser()
result = analyser.analyse("What ancient wonder was located in Alexandria?")
print(result.difficulty) # hard
print(result.question_type) # what
print(result.category) # history
print(result.difficulty_score) # 0.52
print(result.keywords) # ['ancient', 'wonder', 'located', 'alexandria']
# Compare two questions
cmp = analyser.compare(
"What color is the sky?",
"In what year was the Treaty of Westphalia signed?"
)
print(cmp["harder"]) # q2
# Generate a quiz
gen = TriviaGenerator()
quiz = gen.quiz(count=10, mix=True)
for q in quiz:
print(q.text)
CLI
langgraph-tavily analyse "Who composed The Rite of Spring?"
langgraph-tavily analyse "What is 2+2?" --json
langgraph-tavily compare "What is the capital of France?" "Which element has atomic number 79?"
langgraph-tavily quiz --count 5 --difficulty medium --show-answers
langgraph-tavily batch questions.txt --json
License
MIT
Metadata
Release files for langgraph-tavily 0.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 | |
|---|---|---|---|
| langgraph_tavily-0.1.0.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langgraph_tavily-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.6 kB
Release files / langgraph_tavily-0.1.0.tar.gz
| Download URL | langgraph_tavily-0.1.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de1dc24056d15748056c569faea018f523c5c41d1bfdc92ec232964adeccb166
|
|
BLAKE2b-256 checksum How to use checksums |
6b4bab4cdc5548e1e4a24fbc3b3c89074a4e5470c7cc4d44f7598fcfb49001d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / langgraph_tavily-0.1.0-py3-none-any.whl
| Download URL | langgraph_tavily-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76834ebc39d5c46f42d9b41706165907e8127a15330b9d7a32f1975b85676e2f
|
|
BLAKE2b-256 checksum How to use checksums |
faaa0b9e0fdc08e99d10c20e1d3a612f459e8cfa370727eb1356f33d58661d5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|