Skip to content

dogy-app/assistant-api

Repository files navigation

Logo

Dogy Assistant API

AI Assistant API service for Dogy app built with LangGraph.

Release Python version Latest version API Documentation

Features

  • Generate accurate and relevant information curated to your dog.
  • Analyze dog food images for nutritional contents and provide recommendations based on it.
  • Provide helpful and relevant exercise routines for you dog.
  • AI-generated daily challenges for users.
  • RAG support for up-to-date information.
  • Support for history and threads in your conversations.
  • Generate titles for threads based on the question of the user.
  • Secured private threads with authentication.

About

The Dogy AI Assistant is implemented with LangGraph and uses AzureChatOpenAI as its model of choice. The Azure OpenAI models used are GPT-4.1 and GPT-4o with dog training and other dog-related information in RAG. The prompts used in this AI agent is private and can be found in LangSmith. If you need access to these prompts, you can email me or open an issue here.

Demo

You can view the demo here.

Architecture

LangGraph AI Agent

image

Usage

  1. Create a thread from this endpoint:
    POST: https://dogy-assistant.azurewebsites.net/threads
    JSON Body: {}
    Then retrieve the thread_id.

  2. You can then call the Langgraph model from this endpoint:
    POST: https://dogy-assistant.azurewebsites.net/threads/{THREAD_ID}/runs/stream
    JSON Body (if text-only):

{
  "assistant_id": "7d15aae4-655d-4e07-b3d2-1e5755cbb7fb",
  "input": {
    "messages": [
      {
        "role": "user",
        "content": "PROMPT OF USER"
      }
    ]
  },
  "stream_mode": [
    "messages"
  ]
}

JSON Body (if text with image input):

{
  "assistant_id": "7d15aae4-655d-4e07-b3d2-1e5755cbb7fb",
  "input": {
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "text",
            "text": "PROMPT OF USER"
          },
          {
            "type": "image_url",
            "image_url": {
              "url": "data:image/png;base64,IMG_ON_BASE64"
            }
          }
        ]
      }
    ]
  },
  "stream_mode": [
    "messages"
  ]
}

Do you have a question?

If you have any question or inquiry, feel free to email me or open an issue here. I'll be sure to respond and provide insights given your question.

About

AI Assistant for Dogy

Resources

Stars

Watchers

Forks

Packages

No packages published