Skip to content

AIGraph4pg - Tutorial and Reference Implementation for AI and Graphs with Azure PostgreSQL and Apache AGE

License

Notifications You must be signed in to change notification settings

ArjunNarendra/AIGraph4pg

 
 

Repository files navigation

Documentation

Please see the Documentation site



Links


Directory Structure of this GitHub Repository

Directory/File                       Description

├── az                           <-- az CLI deployment script for Azure PostgresSQL
├── data
│   ├── countries                <-- small dataset for script agefreighter_example.py
│   └── legal_cases              <-- the relational curated dataset for this repo, zipped
│       └── graph_csv            <-- the graph curated dataset, csv files
├── docs                         <-- documentation in markdown format
├── jupyter                      <-- sample Jypyter notebook for AGE and the agefreighter library
├── pg_scripts                   <-- scripts for using PostgreSQL CLI programs, like pg_dump
└── python                       <-- the python3 implementation code for this project
    ├── agefreighter_example.py  <-- simple python program to load an AGE graph with agefreighter
    ├── docker-compose.yml       <-- yaml file used to run the web app with docker compose
    ├── Dockerfile               <-- file used to create the Docker image
    ├── dotenv_example           <-- example file for creating your optional .env file
    ├── main.py                  <-- the primary python "console application"
    ├── pg.ps1                   <-- script to run the psql program in an easy manner
    ├── requirements.in          <-- the python required libraries list, used by venv.ps1
    ├── set-env-vars-sample.ps1  <-- editable generated script used to set your environment variables
    ├── venv.ps1                 <-- powershell script to create your python virthal environment
    ├── webapp.ps1               <-- powershell script to start the web UI application
    ├── webapp.py                <-- web app implementation python file
    ├── sql                      <-- sql scripts, such as to delete/define the legal_cases table and indexes
    ├── src                      <-- primary python source code directory
    ├── static                   <-- static assets served by the web application
    ├── templates                <-- jinja2 templates for dynamic content generation; queries, prompts
    ├── tests                    <-- unit tests using the pytest testing framework
    ├── tmp                      <-- not in GitHub; manually create this directory yourself
    ├── venv                     <-- not in GitHub; this is the python virtual environment
    └── views                    <-- web UI html views/pages

About

AIGraph4pg - Tutorial and Reference Implementation for AI and Graphs with Azure PostgreSQL and Apache AGE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 68.6%
  • Python 24.8%
  • PowerShell 3.7%
  • Jupyter Notebook 2.1%
  • Other 0.8%