Surface Duo Blog

Build great Android experiences, from AI to foldable and large-screens.

Latest posts

Table comparing embeddings similarity scores
Craig Dunn Craig Dunn
Oct 29, 2023

More efficient embeddings

Hello prompt engineers, I’ve been reading about how to improve the process of reasoning over long documents by optimizing the chunking process (how...

0
0
layers of AI risk mitigation
Craig Dunn Craig Dunn
Oct 22, 2023

Responsible AI and content safety

Hello prompt engineers, This week we’re taking a break from code samples to highlight the general availability of Azure AI Content Safety. In this ...

0
0
Craig Dunn Craig Dunn
Oct 12, 2023

“Search the web” for up-to-date OpenAI chat responses

Hello prompt engineers, Over the course of this blog series, we have investigated different ways of augmenting the information available to an LLM ...

0
0
Craig Dunn Craig Dunn
Oct 5, 2023

Android tokenizer for OpenAI

Hello prompt engineers, The past few weeks we’ve been extending JetchatAI’s sliding window which manages the size of the chat API calls to stay ...

0
1
Image showing speech recognition and synthesis in the JetchatAI sample app
Craig Dunn Kristen Halper
Craig,
Kristen
Sep 28, 2023

Speech-to-speech conversing with OpenAI on Android

Hello prompt engineers, Just this week, OpenAI announced that their chat app and website can now ‘hear and speak’. In a huge coincidence (...

2
0
Craig Dunn Craig Dunn
Sep 21, 2023

Infinite chat with history embeddings

Hello prompt engineers, The last few posts have been about the different ways to create an ‘infinite chat’, where the conversation between the ...

0
1
Screenshot of a sample conversation history to be summarized
Craig Dunn Craig Dunn
Sep 14, 2023

“Infinite” chat with history summarization

Hello prompt engineers, A few weeks ago we talked about token limits on LLM chat APIs and how this prevents an infinite amount of history being ...

0
0
Craig Dunn Craig Dunn
Sep 7, 2023

De-duplicating context in the chat sliding window

Hello prompt engineers, Last week’s post discussed the concept of a sliding window to keep recent context while preventing LLM chat prompts from ...

0
0
Error message when the chat payload exceeds the model's token limit
Craig Dunn Craig Dunn
Aug 31, 2023

Infinite chat using a sliding window

Hello prompt engineers, There are a number of different strategies to support an ‘infinite chat’ using an LLM, required because large language ...

0
0

Feedback