Surface Duo Blog

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

  • 2023 year in review
    by Craig Dunn on January 1, 2024 at 2:42 am

    Hello Android developers, 2023 was the year that machine learning and artificial intelligence really became mainstream, and we covered both topics with a focus on Android implementations. We published series on using the ONNX machine learning runtime, building Android apps with Microsoft Graph, and tutorials for Jetpack Compose developers! Take a look back at all The post 2023 year in review appeared first on Surface Duo Blog.

  • Use ONNX Runtime in Flutter
    by Andrei Diaconu on December 21, 2023 at 5:07 pm

    Hello Flutter developers! After recently reading about how Pieces.app uses ONNX runtime inside a Flutter app, I was determined to try it myself. This article shows a summary of the journey I took and provides a few tips for you if you want to do the same. Since we have FFI in Dart for calling The post Use ONNX Runtime in Flutter appeared first on Surface Duo Blog.

  • OpenAI Assistant functions on Android
    by Craig Dunn on December 15, 2023 at 1:02 am

    Hello prompt engineers, This week, we are taking one last look at the new Assistants API. Previous blog posts have covered the Retrieval tool with uploaded files and the Code interpreter tool. In today’s post, we’ll add the askWikipedia function that we’d previously built to the fictitious Contoso employee handbook document chat. Configure functions in The post OpenAI Assistant functions on Android appeared first on Surface Duo Blog.

  • OpenAI Assistant code interpreter on Android
    by Craig Dunn on December 11, 2023 at 2:12 am

    Hello prompt engineers, Over the last few weeks, we’ve looked at different aspects of the new OpenAI Assistant API, both prototyping in the playground and using Kotlin in the JetchatAI sample. In this post we’re going to add the Code Interpreter feature which allows the Assistants API to write and run Python code in a The post OpenAI Assistant code interpreter on Android appeared first on Surface Duo Blog.

  • OpenAI Assistant on Android
    by Craig Dunn on December 1, 2023 at 3:09 am

    Hello prompt engineers, This week we’re continuing to discuss the new Assistant API announced at OpenAI Dev Day. There is documentation available that explains how the API works and shows python/javascript/curl examples, but in this post we’ll implement in Kotlin for Android and Jetpack Compose. You can review the code in this JetchatAI pull request. The post OpenAI Assistant on Android appeared first on Surface Duo Blog.

  • Test the latest AI features in Kotlin
    by Craig Dunn on November 23, 2023 at 10:48 pm

    Hello prompt engineers, Last week we looked at one of the new OpenAI features – Assistants – in the web playground, but good news: the OpenAI Kotlin library is already being updated with the new APIs and you can start to try them out right now in your Android codebase with snapshot package builds. With The post Test the latest AI features in Kotlin appeared first on Surface Duo Blog.

  • OpenAI Assistants
    by Craig Dunn on November 18, 2023 at 6:55 pm

    Hello prompt engineers, OpenAI held their first Dev Day on November 6th, which included a number of new product announcements, including GPT-4 Turbo with 128K context, function calling updates, JSON mode, improvements to GPT-3.5 Turbo, the Assistant API, DALL*E 3, text-to-speech, and more. This post will focus just on the Assistant API because it greatly The post OpenAI Assistants appeared first on Surface Duo Blog.

  • Chunking for citations in a document chat
    by Craig Dunn on November 13, 2023 at 12:42 am

    Hello prompt engineers, Last week’s blog introduced a simple “chat over documents” Android implementation, using some example content from this Azure demo. However, if you take a look at the Azure sample, the output is not only summarized from the input PDFs, but it’s also able to cite which document the answer is drawn from The post Chunking for citations in a document chat appeared first on Surface Duo Blog.

  • Document chat with OpenAI on Android
    by Craig Dunn on November 4, 2023 at 3:28 am

    Hello prompt engineers, In last week’s discussion on improving embedding efficiency, we mentioned the concept of “chunking”. Chunking is the process of breaking up a longer document (ie. too big to fit under a model’s token limit) into smaller pieces of text, which will be used to generate embeddings for vector similarity comparisons with user The post Document chat with OpenAI on Android appeared first on Surface Duo Blog.

  • More efficient embeddings
    by Craig Dunn on October 30, 2023 at 1:33 am

    Hello prompt engineers, I’ve been reading about how to improve the process of reasoning over long documents by optimizing the chunking process (how to break up the text into pieces) and then summarizing before creating embeddings to achieve better responses. In this blog post we’ll try to apply that philosophy to the Jetchat demo’s conference The post More efficient embeddings appeared first on Surface Duo Blog.

Share Websitecyber