Firebase Studio just launched.
Three tries, three errors.
Did anyone get it to work?
@Firebase
Replying to @_overment @DaveShapi
youtube.com/watch?v=eMlx5fFN…
If you like learning about the underlying mechanisms, can highly recommend this YT series.
1
12
1,193
Gemini Flash 2.0’s photo editing capabilities blew me away.
Built a product picture generator prototype in hours.
Simple but functional frontend generated with @v0.
Tech: NextJS, React, FastAPI, Gemini.
It’s open source—see the GitHub repo below.
Want to add image generation/editing to your app?
Gemini Flash 2.0 is still experimental, but so easy to implement with just a few lines of code.
I built a simple prototype this morning, will share code later.
Output isn’t perfect yet, but think of what it’ll do in 6 months.
1
5
552
Google’s new image editor, Gemini Flash 2.0 Experimental, is unreal.
Built a quick prototype for a product image generator in just 1–2 hours.
Imagine the products that are going to be built with this.
I'll share the code later today.
Replying to @JorisTechTalk @langchain
Step 9 - Continuous Interaction:
Use a simple while loop to continuously ask questions about your PDF file.
Your Q&A bot is now operational!
1
2
191
Replying to @JorisTechTalk @langchain
Step 8 - Question and Answer Chain:
Create a RetrievalQA instance.
This combines the Large Language Model with the retriever, enabling Q&A over your data.
1
3
133
Replying to @JorisTechTalk @langchain
Step 7 - Model Initialization:
Initialize the ChatOpenAI model.
Set a lower temperature for precise responses and less hallucination.
1
3
153
Replying to @JorisTechTalk @langchain
Step 6 - Retrieval Setup:
Create a retriever using Chroma and the generated embeddings.
This prepares your data for retrieval.
1
3
143
Replying to @JorisTechTalk @langchain
Step 5 - Embeddings:
Generate embeddings using OpenAIEmbeddings.
These numerical representations capture the semantic meaning of your text chunks.
1
3
145
Replying to @JorisTechTalk @langchain
Chunking: Cost Optimization
API costs are tied to the tokens used.
Smaller chunks equal fewer tokens, leading to lower expenses.
Optimize your AI solutions not only for performance but also for cost-effectiveness.
Now back to the code.
1
2
155
Replying to @JorisTechTalk @langchain
Chunking: Speed
Retrieval in AI involves the Large Language Model (LLM).
Smaller chunks mean quicker responses.
Fewer tokens for LLM to process speed up your applications.
Time is crucial in AI-powered interactions.
1
2
172
Replying to @JorisTechTalk @langchain
Chunking: Semantic Precision
Smaller text chunks enhance precision.
When text discusses various topics, it's harder to find the relevant info.
Smaller chunks make pinpointing meaning easier.
Your AI applications become more accurate!
1
2
173
Replying to @JorisTechTalk @langchain
Step 4 - Chunking:
Divide your text data into smaller, manageable chunks.
But why use smaller chunks for Retrieval Augmented Generation?
1
1
196











