I'm rebuilding evorag , a Python retrieval service: it chunks documents, embeds them with OpenAI's text-embedding-3-small , stores vectors in PostgreSQL + pgvector, and returns the most relevant chunks for a query. Answer generation is out of scope. The plan is to connect it to my NestJS rag-se...
Source: [Dev.to](https://dev.to/yusufoztoprak/counting-openai-tokens-per-request-in-fastapi-without-touching-my-use-cases-4pce)