Skip to content

Files

Latest commit

1c78327 · Mar 17, 2025

History

History
119 lines (81 loc) · 4.32 KB

readme.md

File metadata and controls

119 lines (81 loc) · 4.32 KB


The CosmosAIGraph (caig) solution is deployed as two microservices:

Name Functionality
web Web microservice, user-facing, HTML-based UI and RESTful API
graph Graph microservice with an in-memory Apache Jena graph

These are located in the web_app, and graph_app folders of this repository.

They are also packaged as Docker containers named as caig_web, and caig_graph, respectively.

Implementation Summary


Quick Start

Clone this GitHub Repository

Open a PowerShell Terminal, navigate to the desired parent directory and execute the following git clone command. This will copy the contents of the public GitHub repository to your workstation.

If you don't have git installed on your system, please see the Developer Workstation Setup page.

> git clone https://github.com/AzureCosmosDB/CosmosAIGraph.git

> cd CosmosAIGraph

> Get-Location

The output value from the Get-Location will be a fully-qualified directory path on your workstation. Please set the CAIG_HOME environment variable to this directory path value.

echo 'setting CAIG_HOME'
[Environment]::SetEnvironmentVariable("CAIG_HOME", "...your value from Get-Location ...", "User")

You will need to restart your Terminal for the above command to take effect.

You'll see in a section below that this CosmosAIGraph reference application uses several environment variables, and they all begin with CAIG_.

Provision Azure Cosmos DB and Azure OpenAI

Developer Workstation Setup

Load Cosmos DB with Library and Config Documents

Run the Application on your Workstation

Azure Container Apps Deployment

Screen Shots of the Current Implementation


Next Steps: Customizing this Solution for Your Application

It is recommended that CosmosAIGraph Proof-of-Concept (POC) team has the following skill sets:

  • A data analyst who is familiar with your input graph data

  • A data engineer who can wrangle/transform the raw data into JSON documents for Cosmos DB

  • A Python developer with UI skills

  • A Java developer with graph (SPARQL/TTL) skills

  • See Customizing this Solution

  • See the FAQ Page to clarify your understanding of the CosmosAIGraph solution.