Skip to content
@preternatural-explore

Explore Preternatural

Explore real-world examples of what you can build with @PreternaturalAI.

👋

Welcome to @PreternaturalAI's collection of examples and templates. Use these to build and ship your own AI/ML apps to the App Store.

Index:



This project is a fully native SwiftUI app that allows you to run local LLMs (e.g. Llama, Mistral) on Apple silicon in real-time using MLX.

mlx.mp4

The MovieSearch app enables users to search for movies using natural language queries, providing a more intuitive and efficient search experience. This app demonstrates working with the OpenAI API, structuring training data, implementing Retrieval-Augmented Generation (RAG), and using text embeddings to add semantic search to any application.

export533D506A-68B5-47FE-B166-9DE02C94AB6F

VoicePilot demonstrates how to enhance the recording experience by not only capturing audio but also offering intelligent transcription and analysis. Upon creating a recording, VoicePilot utilizes OpenAI’s Whisper API to deliver precise transcriptions, complete with timestamped segments for easy navigation. Moreover, it automatically generates a descriptive name, a concise summary, and highlights the key points for each recording, streamlining the customer’s review process and making information retrieval straightforward.

voicemoc

PoemWriter is a simple demonstration of the LLM completions API. The user enters a poem topic and the LLM generates a full poem about the topic. Here is a poem generated for WWDC! poemwriterscreenshot

A bot that narrates what it sees in front of it, in the style of a BBC nature documentary with the voice of Sir David Attenborough. Uses GPT-4o for image understanding and ElevenLabs for Audio Generation.

3ADDC3E09A54793F7BEF1.mp4

A simple app to upload an image to OpenAI Vision for analysis. If the item is food we will gather the pros, cons, type & overall summary about the food.

export2.mov

The PhotoTranslator app leverages OpenAI's Vision API to bring translations into the user's surroundings seamlessly. Users can simply take a photo, and the app, using an on-device YOLO model, identifies objects within the image. Then, creative sentences in the target language are generated about the picture in general and each object specifically along with the foreign language audio using ElevenLabs API, making learning a new language an engaging and immersive experience.
phototranslationdescription exportA25BFD02-B306-4936-87A7-FB421D9F21F1

The Swift Code Generator is a demo app that allows users to input natural language descriptions of desired Swift functionality and receive corresponding Swift code snippets. The app demonstrates the use of a clever prompting technique: leveraging the Claude 3.5 Sonnet model, it initiates the assistant's response with a code block marker and employs a stop sequence to ensure only the relevant code is returned. This method effectively filters out explanatory text, focusing solely on the generated Swift code - a technique which can be further applied to other use-cases.

smartcode

Popular repositories Loading

  1. mlx-swift-chat mlx-swift-chat Public

    A multi-platform SwiftUI frontend for running local LLMs with Apple's MLX framework.

    Swift 368 22

  2. movie-search movie-search Public

    Swift 3

  3. voice-recorder voice-recorder Public

    Swift 2

  4. poem-generator poem-generator Public

    Swift 2

  5. swift-code-generator swift-code-generator Public

    A demo app for generating Swift code

    Swift 2

  6. photo-translator photo-translator Public

    Swift 1

Repositories

Showing 9 of 9 repositories
  • mlx-swift-chat Public

    A multi-platform SwiftUI frontend for running local LLMs with Apple's MLX framework.

    preternatural-explore/mlx-swift-chat’s past year of commit activity
    Swift 368 MIT 22 5 (1 issue needs help) 0 Updated Oct 27, 2024
  • .github Public
    preternatural-explore/.github’s past year of commit activity
    0 0 0 0 Updated Oct 5, 2024
  • health-app Public
    preternatural-explore/health-app’s past year of commit activity
    Swift 0 0 0 0 Updated Sep 21, 2024
  • preternatural-explore/photo-translator’s past year of commit activity
    Swift 1 0 1 0 Updated Sep 21, 2024
  • narrator-bot Public
    preternatural-explore/narrator-bot’s past year of commit activity
    Swift 0 0 0 0 Updated Sep 20, 2024
  • swift-code-generator Public

    A demo app for generating Swift code

    preternatural-explore/swift-code-generator’s past year of commit activity
    Swift 2 0 0 0 Updated Sep 20, 2024
  • preternatural-explore/poem-generator’s past year of commit activity
    Swift 2 0 0 0 Updated Sep 20, 2024
  • preternatural-explore/voice-recorder’s past year of commit activity
    Swift 2 0 0 0 Updated Sep 20, 2024
  • movie-search Public
    preternatural-explore/movie-search’s past year of commit activity
    Swift 3 0 0 0 Updated Sep 20, 2024

Top languages

Loading…

Most used topics

Loading…