feat: consolida backend RAG e documentação
This commit is contained in:
parent
7c18727f62
commit
d72572ee6f
28 changed files with 2193 additions and 275 deletions
12
rag-api/.env.example
Normal file
12
rag-api/.env.example
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Copie para .env e adicione somente overrides não secretos, se necessários.
|
||||
# Os valores padrão canônicos estão em config.py.
|
||||
# QDRANT_URL=
|
||||
# OLLAMA_URL=
|
||||
# QDRANT_COLLECTION=
|
||||
# EMBED_MODEL=
|
||||
# CHAT_MODEL=
|
||||
# RAG_SCORE_THRESHOLD=
|
||||
# RAG_MAX_CONTEXT_CHARS=
|
||||
# RAG_MAX_QUESTION_CHARS=
|
||||
|
||||
# Provisionar ATIVA_RAG_API_KEY separadamente no armazenamento de segredos do host.
|
||||
|
|
@ -9,13 +9,13 @@ WORKDIR /app
|
|||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY app.py request_contract.py source_metadata.py ./
|
||||
COPY app.py config.py request_contract.py source_metadata.py ./
|
||||
|
||||
RUN useradd --system --uid 10001 ativa-rag && \
|
||||
chown -R 10001:10001 /app
|
||||
|
||||
USER 10001
|
||||
|
||||
EXPOSE 8000
|
||||
EXPOSE 8090
|
||||
|
||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8090", "--no-access-log"]
|
||||
|
|
|
|||
273
rag-api/app.py
273
rag-api/app.py
|
|
@ -1,4 +1,3 @@
|
|||
import os
|
||||
import time
|
||||
import uuid
|
||||
from typing import Any
|
||||
|
|
@ -8,22 +7,20 @@ from fastapi import FastAPI, Header, HTTPException
|
|||
from fastapi.responses import JSONResponse, StreamingResponse
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from config import settings
|
||||
from request_contract import ContractError, extract_user_question, validate_api_key
|
||||
from source_metadata import source_reference
|
||||
|
||||
|
||||
QDRANT_URL = os.getenv("QDRANT_URL", "http://192.168.0.153:6333").rstrip("/")
|
||||
OLLAMA_URL = os.getenv("OLLAMA_URL", "http://192.168.0.106:11434").rstrip("/")
|
||||
|
||||
COLLECTION = os.getenv("QDRANT_COLLECTION", "ativa_knowledge")
|
||||
EMBED_MODEL = os.getenv("EMBED_MODEL", "nomic-embed-text")
|
||||
CHAT_MODEL = os.getenv("CHAT_MODEL", "ativa-assistente")
|
||||
|
||||
API_KEY = os.getenv("ATIVA_RAG_API_KEY", "").strip()
|
||||
|
||||
SCORE_THRESHOLD = float(os.getenv("RAG_SCORE_THRESHOLD", "0.55"))
|
||||
MAX_CONTEXT_CHARS = int(os.getenv("RAG_MAX_CONTEXT_CHARS", "18000"))
|
||||
MAX_QUESTION_CHARS = int(os.getenv("RAG_MAX_QUESTION_CHARS", "2000"))
|
||||
QDRANT_URL = settings.qdrant_url
|
||||
OLLAMA_URL = settings.ollama_url
|
||||
COLLECTION = settings.collection
|
||||
EMBED_MODEL = settings.embed_model
|
||||
CHAT_MODEL = settings.chat_model
|
||||
API_KEY = settings.api_key
|
||||
SCORE_THRESHOLD = settings.score_threshold
|
||||
MAX_CONTEXT_CHARS = settings.max_context_chars
|
||||
MAX_QUESTION_CHARS = settings.max_question_chars
|
||||
|
||||
app = FastAPI(
|
||||
title="ATIVA RAG API",
|
||||
|
|
@ -241,6 +238,9 @@ async def query(
|
|||
|
||||
question = request.question.strip()
|
||||
|
||||
if not question:
|
||||
raise HTTPException(status_code=400, detail="Pergunta vazia.")
|
||||
|
||||
if len(question) > MAX_QUESTION_CHARS:
|
||||
raise HTTPException(status_code=400, detail="Pergunta muito longa.")
|
||||
|
||||
|
|
@ -276,16 +276,21 @@ async def query(
|
|||
"collection": COLLECTION,
|
||||
}
|
||||
|
||||
except httpx.TimeoutException as exc:
|
||||
raise HTTPException(
|
||||
status_code=504,
|
||||
detail="Tempo esgotado ao consultar serviço interno.",
|
||||
) from exc
|
||||
except httpx.HTTPStatusError as exc:
|
||||
raise HTTPException(
|
||||
status_code=502,
|
||||
detail=f"Falha em serviço interno: {exc.response.text[:500]}",
|
||||
)
|
||||
detail="Falha em serviço interno.",
|
||||
) from exc
|
||||
except Exception as exc:
|
||||
raise HTTPException(
|
||||
status_code=500,
|
||||
detail=f"Erro no RAG: {exc}",
|
||||
)
|
||||
detail="Erro interno no RAG.",
|
||||
) from exc
|
||||
|
||||
|
||||
@app.get("/v1/models")
|
||||
|
|
@ -320,120 +325,140 @@ async def chat_completions(
|
|||
except ContractError as exc:
|
||||
raise HTTPException(status_code=exc.status_code, detail=exc.detail) from exc
|
||||
|
||||
vector = await embed(question)
|
||||
try:
|
||||
vector = await embed(question)
|
||||
|
||||
results = await search_qdrant(
|
||||
vector,
|
||||
top_k=5,
|
||||
score_threshold=SCORE_THRESHOLD,
|
||||
)
|
||||
|
||||
context, sources = build_context(results)
|
||||
|
||||
system_messages = [
|
||||
str(m.get("content", ""))
|
||||
for m in request.messages
|
||||
if m.get("role") == "system"
|
||||
]
|
||||
|
||||
prompt = build_prompt(
|
||||
question=question,
|
||||
context=context,
|
||||
messages=request.messages,
|
||||
)
|
||||
|
||||
if system_messages:
|
||||
prompt = (
|
||||
"INSTRUÇÕES ADICIONAIS DO SISTEMA:\n"
|
||||
+ "\n".join(system_messages)
|
||||
+ "\n\n"
|
||||
+ prompt
|
||||
results = await search_qdrant(
|
||||
vector,
|
||||
top_k=5,
|
||||
score_threshold=SCORE_THRESHOLD,
|
||||
)
|
||||
|
||||
answer = await generate(
|
||||
prompt=prompt,
|
||||
temperature=request.temperature or 0.1,
|
||||
model=request.model or CHAT_MODEL,
|
||||
)
|
||||
context, sources = build_context(results)
|
||||
|
||||
response_id = f"chatcmpl-{uuid.uuid4().hex}"
|
||||
created = int(time.time())
|
||||
system_messages = [
|
||||
str(m.get("content", ""))
|
||||
for m in request.messages
|
||||
if m.get("role") == "system"
|
||||
]
|
||||
|
||||
if not request.stream:
|
||||
return {
|
||||
"id": response_id,
|
||||
"object": "chat.completion",
|
||||
"created": created,
|
||||
"model": request.model or CHAT_MODEL,
|
||||
"choices": [
|
||||
{
|
||||
"index": 0,
|
||||
"message": {
|
||||
"role": "assistant",
|
||||
"content": answer,
|
||||
prompt = build_prompt(
|
||||
question=question,
|
||||
context=context,
|
||||
messages=request.messages,
|
||||
)
|
||||
|
||||
if system_messages:
|
||||
prompt = (
|
||||
"INSTRUÇÕES ADICIONAIS DO SISTEMA:\n"
|
||||
+ "\n".join(system_messages)
|
||||
+ "\n\n"
|
||||
+ prompt
|
||||
)
|
||||
|
||||
answer = await generate(
|
||||
prompt=prompt,
|
||||
temperature=(
|
||||
request.temperature
|
||||
if request.temperature is not None
|
||||
else 0.1
|
||||
),
|
||||
model=request.model or CHAT_MODEL,
|
||||
)
|
||||
|
||||
response_id = f"chatcmpl-{uuid.uuid4().hex}"
|
||||
created = int(time.time())
|
||||
|
||||
if not request.stream:
|
||||
return {
|
||||
"id": response_id,
|
||||
"object": "chat.completion",
|
||||
"created": created,
|
||||
"model": request.model or CHAT_MODEL,
|
||||
"choices": [
|
||||
{
|
||||
"index": 0,
|
||||
"message": {
|
||||
"role": "assistant",
|
||||
"content": answer,
|
||||
},
|
||||
"finish_reason": "stop",
|
||||
}
|
||||
],
|
||||
"x_ativa_sources": sources,
|
||||
}
|
||||
|
||||
async def event_stream():
|
||||
yield (
|
||||
f"data: {{\"id\":\"{response_id}\","
|
||||
f"\"object\":\"chat.completion.chunk\","
|
||||
f"\"created\":{created},"
|
||||
f"\"model\":\"{request.model or CHAT_MODEL}\","
|
||||
f"\"choices\":[{{\"index\":0,\"delta\":{{"
|
||||
f"\"role\":\"assistant\"}},\"finish_reason\":null}}]}}\n\n"
|
||||
)
|
||||
|
||||
import json
|
||||
|
||||
yield (
|
||||
"data: "
|
||||
+ json.dumps(
|
||||
{
|
||||
"id": response_id,
|
||||
"object": "chat.completion.chunk",
|
||||
"created": created,
|
||||
"model": request.model or CHAT_MODEL,
|
||||
"choices": [
|
||||
{
|
||||
"index": 0,
|
||||
"delta": {"content": answer},
|
||||
"finish_reason": None,
|
||||
}
|
||||
],
|
||||
},
|
||||
"finish_reason": "stop",
|
||||
}
|
||||
],
|
||||
"x_ativa_sources": sources,
|
||||
}
|
||||
|
||||
async def event_stream():
|
||||
yield (
|
||||
f"data: {{\"id\":\"{response_id}\","
|
||||
f"\"object\":\"chat.completion.chunk\","
|
||||
f"\"created\":{created},"
|
||||
f"\"model\":\"{request.model or CHAT_MODEL}\","
|
||||
f"\"choices\":[{{\"index\":0,\"delta\":{{"
|
||||
f"\"role\":\"assistant\"}},\"finish_reason\":null}}]}}\n\n"
|
||||
)
|
||||
|
||||
import json
|
||||
|
||||
yield (
|
||||
"data: "
|
||||
+ json.dumps(
|
||||
{
|
||||
"id": response_id,
|
||||
"object": "chat.completion.chunk",
|
||||
"created": created,
|
||||
"model": request.model or CHAT_MODEL,
|
||||
"choices": [
|
||||
{
|
||||
"index": 0,
|
||||
"delta": {"content": answer},
|
||||
"finish_reason": None,
|
||||
}
|
||||
],
|
||||
},
|
||||
ensure_ascii=False,
|
||||
ensure_ascii=False,
|
||||
)
|
||||
+ "\n\n"
|
||||
)
|
||||
+ "\n\n"
|
||||
)
|
||||
|
||||
yield (
|
||||
"data: "
|
||||
+ json.dumps(
|
||||
{
|
||||
"id": response_id,
|
||||
"object": "chat.completion.chunk",
|
||||
"created": created,
|
||||
"model": request.model or CHAT_MODEL,
|
||||
"choices": [
|
||||
{
|
||||
"index": 0,
|
||||
"delta": {},
|
||||
"finish_reason": "stop",
|
||||
}
|
||||
],
|
||||
}
|
||||
yield (
|
||||
"data: "
|
||||
+ json.dumps(
|
||||
{
|
||||
"id": response_id,
|
||||
"object": "chat.completion.chunk",
|
||||
"created": created,
|
||||
"model": request.model or CHAT_MODEL,
|
||||
"choices": [
|
||||
{
|
||||
"index": 0,
|
||||
"delta": {},
|
||||
"finish_reason": "stop",
|
||||
}
|
||||
],
|
||||
}
|
||||
)
|
||||
+ "\n\n"
|
||||
)
|
||||
+ "\n\n"
|
||||
|
||||
yield "data: [DONE]\n\n"
|
||||
|
||||
return StreamingResponse(
|
||||
event_stream(),
|
||||
media_type="text/event-stream",
|
||||
)
|
||||
|
||||
yield "data: [DONE]\n\n"
|
||||
|
||||
return StreamingResponse(
|
||||
event_stream(),
|
||||
media_type="text/event-stream",
|
||||
)
|
||||
except httpx.TimeoutException as exc:
|
||||
raise HTTPException(
|
||||
status_code=504,
|
||||
detail="Tempo esgotado ao consultar serviço interno.",
|
||||
) from exc
|
||||
except httpx.HTTPStatusError as exc:
|
||||
raise HTTPException(
|
||||
status_code=502,
|
||||
detail="Falha em serviço interno.",
|
||||
) from exc
|
||||
except Exception as exc:
|
||||
raise HTTPException(
|
||||
status_code=500,
|
||||
detail="Erro interno no RAG.",
|
||||
) from exc
|
||||
|
|
|
|||
36
rag-api/config.py
Normal file
36
rag-api/config.py
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
"""Canonical defaults and environment parsing for the RAG API runtime."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Settings:
|
||||
qdrant_url: str
|
||||
ollama_url: str
|
||||
collection: str
|
||||
embed_model: str
|
||||
chat_model: str
|
||||
api_key: str
|
||||
score_threshold: float
|
||||
max_context_chars: int
|
||||
max_question_chars: int
|
||||
|
||||
@classmethod
|
||||
def from_environment(cls) -> "Settings":
|
||||
return cls(
|
||||
qdrant_url=os.getenv("QDRANT_URL", "http://192.168.0.153:6333").rstrip("/"),
|
||||
ollama_url=os.getenv("OLLAMA_URL", "http://192.168.0.106:11434").rstrip("/"),
|
||||
collection=os.getenv("QDRANT_COLLECTION", "ativa_knowledge"),
|
||||
embed_model=os.getenv("EMBED_MODEL", "nomic-embed-text"),
|
||||
chat_model=os.getenv("CHAT_MODEL", "ativa-assistente"),
|
||||
api_key=os.getenv("ATIVA_RAG_API_KEY", "").strip(),
|
||||
score_threshold=float(os.getenv("RAG_SCORE_THRESHOLD", "0.55")),
|
||||
max_context_chars=int(os.getenv("RAG_MAX_CONTEXT_CHARS", "18000")),
|
||||
max_question_chars=int(os.getenv("RAG_MAX_QUESTION_CHARS", "2000")),
|
||||
)
|
||||
|
||||
|
||||
settings = Settings.from_environment()
|
||||
|
|
@ -11,15 +11,9 @@ services:
|
|||
env_file:
|
||||
- .env
|
||||
|
||||
# Injected by the host's approved secret provider; never store the value here.
|
||||
environment:
|
||||
QDRANT_URL: "http://192.168.0.153:6333"
|
||||
OLLAMA_URL: "http://192.168.0.106:11434"
|
||||
QDRANT_COLLECTION: "ativa_knowledge"
|
||||
EMBED_MODEL: "nomic-embed-text"
|
||||
CHAT_MODEL: "ativa-assistente"
|
||||
RAG_SCORE_THRESHOLD: "0.55"
|
||||
RAG_MAX_CONTEXT_CHARS: "18000"
|
||||
RAG_MAX_QUESTION_CHARS: "2000"
|
||||
ATIVA_RAG_API_KEY: "${ATIVA_RAG_API_KEY:?provide via approved secret manager}"
|
||||
|
||||
network_mode: host
|
||||
|
||||
|
|
|
|||
160
rag-api/evaluation.py
Normal file
160
rag-api/evaluation.py
Normal file
|
|
@ -0,0 +1,160 @@
|
|||
"""Dependency-free scoring for controlled ATIVA RAG evaluation runs."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import math
|
||||
from statistics import mean, median
|
||||
from typing import Any
|
||||
|
||||
|
||||
ABSTENTION_MARKERS = (
|
||||
"não está disponível na base",
|
||||
"não encontrei essa informação",
|
||||
"não há informação suficiente",
|
||||
"não consigo responder com base",
|
||||
)
|
||||
|
||||
|
||||
def evaluate(dataset: dict[str, Any], results: dict[str, Any], k: int = 5) -> dict[str, Any]:
|
||||
"""Return descriptive metrics only; this function never approves a model."""
|
||||
if isinstance(k, bool) or not isinstance(k, int) or k < 1:
|
||||
raise ValueError("k precisa ser maior que zero")
|
||||
if not isinstance(dataset, dict) or not isinstance(results, dict):
|
||||
raise ValueError("dataset e results precisam ser objetos JSON")
|
||||
|
||||
cases = dataset.get("cases")
|
||||
runs = results.get("runs")
|
||||
if not isinstance(cases, list) or not isinstance(runs, list):
|
||||
raise ValueError("dataset.cases e results.runs precisam ser listas")
|
||||
|
||||
case_by_id: dict[str, dict[str, Any]] = {}
|
||||
for case in cases:
|
||||
case_id = case.get("id") if isinstance(case, dict) else None
|
||||
if not isinstance(case_id, str) or not case_id or case_id in case_by_id:
|
||||
raise ValueError("cada caso precisa de id único não vazio")
|
||||
if not isinstance(case.get("expected_sources"), list):
|
||||
raise ValueError(f"expected_sources inválido no caso {case_id}")
|
||||
if not all(isinstance(source, str) for source in case["expected_sources"]):
|
||||
raise ValueError(f"expected_sources inválido no caso {case_id}")
|
||||
if not isinstance(case.get("expects_abstention"), bool):
|
||||
raise ValueError(f"expects_abstention inválido no caso {case_id}")
|
||||
case_by_id[case_id] = case
|
||||
|
||||
hits = 0
|
||||
answerable = 0
|
||||
citation_matches = 0
|
||||
citation_total = 0
|
||||
abstention_expected = 0
|
||||
abstention_detected = 0
|
||||
latencies: list[float] = []
|
||||
run_keys: set[tuple[str, int]] = set()
|
||||
run_case_ids: set[str] = set()
|
||||
outcomes_by_case: dict[str, list[tuple[bool | None, bool | None, bool | None]]] = {}
|
||||
manual_review = 0
|
||||
|
||||
for run in runs:
|
||||
if not isinstance(run, dict):
|
||||
raise ValueError("cada resultado precisa ser um objeto")
|
||||
case_id = run.get("case_id")
|
||||
if not isinstance(case_id, str) or case_id not in case_by_id:
|
||||
raise ValueError("resultado referencia case_id desconhecido")
|
||||
required_fields = {"retrieved_sources", "cited_sources", "answer"}
|
||||
if not required_fields.issubset(run):
|
||||
raise ValueError(f"resultado incompleto em {case_id}")
|
||||
repeat = run.get("repeat", 1)
|
||||
if isinstance(repeat, bool) or not isinstance(repeat, int) or repeat < 1:
|
||||
raise ValueError(f"repeat inválido em {case_id}")
|
||||
run_key = (case_id, repeat)
|
||||
if run_key in run_keys:
|
||||
raise ValueError(f"resultado duplicado para {case_id} repetição {repeat}")
|
||||
run_keys.add(run_key)
|
||||
run_case_ids.add(case_id)
|
||||
case = case_by_id[case_id]
|
||||
expected = set(case["expected_sources"])
|
||||
retrieved = run.get("retrieved_sources", [])
|
||||
cited = run.get("cited_sources", [])
|
||||
answer = run.get("answer", "")
|
||||
if not isinstance(retrieved, list) or not all(isinstance(item, str) for item in retrieved):
|
||||
raise ValueError(f"retrieved_sources inválido em {case_id}")
|
||||
if not isinstance(cited, list) or not all(isinstance(item, str) for item in cited):
|
||||
raise ValueError(f"cited_sources inválido em {case_id}")
|
||||
if not isinstance(answer, str):
|
||||
raise ValueError(f"answer inválida em {case_id}")
|
||||
|
||||
retrieval_hit: bool | None = None
|
||||
if expected:
|
||||
answerable += 1
|
||||
retrieval_hit = bool(expected.intersection(retrieved[:k]))
|
||||
if retrieval_hit:
|
||||
hits += 1
|
||||
citation_total += len(cited)
|
||||
citation_matches += sum(1 for source in cited if source in expected)
|
||||
citations_match = bool(cited) and all(source in expected for source in cited) if expected else not cited
|
||||
abstention_hit: bool | None = None
|
||||
if case.get("expects_abstention") is True:
|
||||
abstention_expected += 1
|
||||
normalized = answer.casefold()
|
||||
abstention_hit = any(marker in normalized for marker in ABSTENTION_MARKERS)
|
||||
if abstention_hit:
|
||||
abstention_detected += 1
|
||||
outcomes_by_case.setdefault(case_id, []).append(
|
||||
(retrieval_hit, citations_match, abstention_hit)
|
||||
)
|
||||
latency = run.get("latency_ms")
|
||||
if latency is not None:
|
||||
if (
|
||||
isinstance(latency, bool)
|
||||
or not isinstance(latency, (int, float))
|
||||
or not math.isfinite(latency)
|
||||
or latency < 0
|
||||
):
|
||||
raise ValueError(f"latency_ms inválida em {case_id}")
|
||||
latencies.append(float(latency))
|
||||
if run.get("human_fidelity_review") in (None, "pending"):
|
||||
manual_review += 1
|
||||
|
||||
p95 = None
|
||||
if latencies:
|
||||
ordered = sorted(latencies)
|
||||
p95 = ordered[max(0, math.ceil(0.95 * len(ordered)) - 1)]
|
||||
|
||||
repeated = [outcomes for outcomes in outcomes_by_case.values() if len(outcomes) > 1]
|
||||
consistent = sum(1 for outcomes in repeated if len(set(outcomes)) == 1)
|
||||
|
||||
return {
|
||||
"evaluation": "baseline_descriptive_only",
|
||||
"gate": None,
|
||||
"k": k,
|
||||
"cases_total": len(case_by_id),
|
||||
"cases_evaluated": len(run_case_ids),
|
||||
"retrieval_hit_at_k": {
|
||||
"hits": hits,
|
||||
"eligible": answerable,
|
||||
"rate": hits / answerable if answerable else None,
|
||||
},
|
||||
"citation_precision": {
|
||||
"matches": citation_matches,
|
||||
"total": citation_total,
|
||||
"rate": citation_matches / citation_total if citation_total else None,
|
||||
},
|
||||
"abstention_marker_rate": {
|
||||
"detected": abstention_detected,
|
||||
"expected": abstention_expected,
|
||||
"rate": abstention_detected / abstention_expected if abstention_expected else None,
|
||||
"interpretation": "heurística lexical; requer revisão humana",
|
||||
},
|
||||
"latency_ms": {
|
||||
"samples": len(latencies),
|
||||
"mean": mean(latencies) if latencies else None,
|
||||
"p50_median": median(latencies) if latencies else None,
|
||||
"p95_nearest_rank": p95,
|
||||
},
|
||||
"human_fidelity_reviews_pending": manual_review,
|
||||
"stability": {
|
||||
"repeated_cases": len(repeated),
|
||||
"consistent_cases": consistent,
|
||||
"outcome_consistency_rate": consistent / len(repeated) if repeated else None,
|
||||
"interpretation": "consistência de indicadores binários, não igualdade textual das respostas",
|
||||
},
|
||||
"missing_results": sorted(set(case_by_id) - run_case_ids),
|
||||
}
|
||||
18
rag-api/requirements-test.txt
Normal file
18
rag-api/requirements-test.txt
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Locked test-only environment validated with Python 3.10.12 on 2026-10-23.
|
||||
# Runtime deployment dependencies remain declared separately in requirements.txt.
|
||||
annotated-doc==0.0.5
|
||||
annotated-types==0.8.0
|
||||
anyio==4.15.1
|
||||
certifi==2026.10.23
|
||||
exceptiongroup==1.3.1
|
||||
fastapi==0.162.0
|
||||
h11==0.16.0
|
||||
httpcore==1.0.9
|
||||
httpx==0.28.1
|
||||
idna==3.20
|
||||
opentelemetry-api==1.45.1
|
||||
pydantic==2.14.1
|
||||
pydantic_core==2.50.1
|
||||
starlette==1.7.0
|
||||
typing_extensions==4.16.0
|
||||
typing-inspection==0.4.4
|
||||
|
|
@ -1,4 +1,6 @@
|
|||
fastapi
|
||||
# FastAPI/httpx/Pydantic pins match the versions exercised by the ASGI suite.
|
||||
# Uvicorn remains unpinned until its runtime version and image build are validated.
|
||||
fastapi==0.162.0
|
||||
uvicorn[standard]
|
||||
httpx
|
||||
pydantic
|
||||
httpx==0.28.1
|
||||
pydantic==2.14.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue