---
title: "Discussion on \"how i improved FAST API response time by optimizing LLM selection, token management, and prompt design.\" | Hashnode"
description: "Discussion on \"how i improved FAST API response time by optimizing LLM selection, token management, and prompt design.\". i had the opportunity to work on building the backend for a copilot project at my previous organization, using FastAPI, openai’s large language models (llms), langchain, and postgresql. the aim was to design backend apis that not only provided accura..."
url: "https://hashnode.com/posts/how-i-improved-fast-api-response-time-by-optimizing-llm-selection-token-management-and-prompt-design/6730d2b82758fbc83b5b4181"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [how i improved FAST API response time by optimizing LLM selection, token management, and prompt design.](https://vinayakgavariya.hashnode.dev/how-i-improved-fast-api-response-time-by-optimizing-llm-selection-token-management-and-prompt-design?utm_source=hashnode&utm_medium=feed)

i had the opportunity to work on building the backend for a copilot project at my previous organization, using FastAPI, openai’s large language models (llms), langchain, and postgresql. the aim was to design backend apis that not only provided accura...

Nov 10, 2024 · 4 min read · vinayakgavariya.hashnode.dev  
Read the article

-   [#genai](https://hashnode.com/tag/genai)
-   [#fastapi](https://hashnode.com/tag/fastapi)
-   [#python](https://hashnode.com/tag/python)
-   [#apis](https://hashnode.com/tag/apis)
-   [#large-language-models](https://hashnode.com/tag/large-language-models)
-   [#llm](https://hashnode.com/tag/llm)

## Written by

[Vinayak Gavariya](https://hashnode.com/@vinayakgavariya)

@vinayakgavariya · India

  
[View profile](https://hashnode.com/@vinayakgavariya)

Engineer, trying to empower myself and others to be a good engineer.

Machine Learning Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[Aashutosh Soni](https://hashnode.com/@Ashutosh7i)

[Nov 10, 2024](https://hashnode.com/posts/how-i-improved-fast-api-response-time-by-optimizing-llm-selection-token-management-and-prompt-design/6730d2b82758fbc83b5b4181/comment/6730ee8f637fc147ae8246df)

insightful ✨

[Vinayak Gavariya](https://hashnode.com/@vinayakgavariya)

[Nov 11, 2024](https://hashnode.com/posts/how-i-improved-fast-api-response-time-by-optimizing-llm-selection-token-management-and-prompt-design/6730d2b82758fbc83b5b4181/comment/6730ee8f637fc147ae8246df#reply-67326b3ae0ec4386ae26daab)

thank you aashutosh 🙌🏻
