Initialize git, add Apache-2.0 LICENSE, .gitattributes (LF line endings), AGENTS.md (entry points, stack, discovery order, baseline checks), RUNBOOK.md (dev boot, prod deploy with overlay, ingestion, failures, rollback, scaling notes), .env.prod.example with rotated credential placeholders, and dev-only warnings on .env.example. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
17 lines
416 B
Python
17 lines
416 B
Python
"""Search endpoint - lexical / semantic / hybrid."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.api.schemas import SearchRequest, SearchResponse
|
|
|
|
router = APIRouter(prefix="/search", tags=["search"])
|
|
|
|
|
|
@router.post("", response_model=SearchResponse)
|
|
def search(req: SearchRequest) -> SearchResponse:
|
|
from app.indexing.hybrid_search import run_search
|
|
|
|
return run_search(req)
|