INNER CODE UNIT · Python

rag

pathwaycom/llm-app · serviette/frontend/main.py:133

    async def rag(request: Request) -> JSONResponse:
        return await _proxy("rag", request)

    @app.post("/api/v1/retrieve")
    async def retrieve(request: Request) -> JSONResponse:
        return await _proxy("retrieve", request)

    return app


def run(config: ServietteConfig) -> None:
    """Start uvicorn with the configured frontend host/port (used by the CLI)."""

    import uvicorn

    config.for_frontend()
    fe = config.frontend
    assert fe is not None  # guaranteed by for_frontend()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…