Slash API Costs: Mastering Caching for LLM Applications

Slash API Costs: Mastering Caching for LLM Applications

Prompt Engineering

1 год назад

6,933 Просмотров

In this video I will show you how to use Caching techniques to reduce the cost on API calls as well as improve the response time for your LLM based Applications. We will be looking at InMemoryCache and SQLiteCache for caching the responses from OpenAI's API. Same approaches can be used with Open-Source Models.

#chatgpt #largelanguagemodels #langchain #cache

▬▬▬▬▬▬▬▬▬▬▬▬▬▬ CONNECT ▬▬▬▬▬▬▬▬▬▬▬
☕ Buy me a Coffee: https://ko-fi.com/promptengineering
|🔴 Support my work on Patreon: Patreon.com/PromptEngineering
🦾 Discord: https://discord.com/invite/t4eYQRUcXB
▶️️ Subscribe: https://www.youtube.com/@engineerprompt?sub_confirmation=1
📧 Business Contact: [email protected]
💼Consulting: https://calendly.com/engineerprompt/consulting-call
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
🔗 :
Github Repo: https://tinyurl.com/2p8mcusm

Timestamps:
Intro: [0:00]
Why Cache? [0:17]
LLM Cache: [1:09]
Cache with OpenAI API: [1:35]
LangChain Cache: [3:40]
SQLiteCache: [8:42]
Other types of Cache: [10:40]
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
All Interesting Videos:
Everything LangChain: https://www.youtube.com/playlist?list=PLVEEucA9MYhOu89CX8H3MBZqayTbcCTMr

Everything LLM: https://youtube.com/playlist?list=PLVEEucA9MYhNF5-zeb4Iw2Nl1OKTH-Txw

Everything Midjourney: https://youtube.com/playlist?list=PLVEEucA9MYhMdrdHZtFeEebl20LPkaSmw

AI Image Generation: https://youtube.com/playlist?list=PLVEEucA9MYhPVgYazU5hx6emMXtargd4z

Тэги:

#prompt_engineering #Prompt_Engineer #natural_language_processing #GPT-4 #chatgpt_for_pdf_files #ChatGPT_for_PDF #langchain_openai #langchain_in_python #embeddings_stable_diffusion #Text_Embeddings #langchain_demo #long_chain_tutorial #langchain #langchain_javascript #gpt-3 #openai #vectorstorage #chroma #train_gpt_on_documents #train_gpt_on_your_data #train_openai #train_openai_model #train_openai_with_own_data #langchain_tutorial #how_to_train_gpt-3 #embeddings #langchain_ai
Ссылки и html тэги не поддерживаются


Комментарии: