genai-stack  by docker

GenAI stack for building GenAI apps

created 1 year ago
4,892 stars

Top 10.4% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This repository provides a pre-configured Docker environment for building Generative AI applications, integrating Langchain, Neo4j, and Ollama. It's designed for developers and researchers looking for a quick start to explore RAG (Retrieval Augmented Generation) patterns, knowledge graphs, and LLM interactions, offering multiple demo applications for inspiration and immediate use.

How It Works

The stack leverages Docker Compose to orchestrate multiple services: Ollama for local LLM hosting, Neo4j for knowledge graph and vector storage, and Python applications built with Langchain for orchestrating LLM calls, data loading, and RAG pipelines. This approach simplifies setup and dependency management, allowing users to focus on application logic rather than infrastructure.

Quick Start & Requirements

  • Install: docker compose up
  • Prerequisites: Docker Desktop (ensure version 4.24.x or later is avoided due to known performance issues). Ollama installation is required for macOS and Windows; it runs as a container on Linux. API keys for OpenAI, AWS, or Google are needed for respective LLM/embedding models.
  • Configuration: Create a .env file from env.example and configure LLM, database URIs, and API keys.
  • Resources: Local LLM hosting via Ollama can be resource-intensive.
  • Links: Introduction blog post

Highlighted Details

  • Integrates Langchain for LLM orchestration and RAG.
  • Supports local LLMs via Ollama and cloud LLMs (OpenAI, Anthropic, Google).
  • Utilizes Neo4j for both vector similarity search and knowledge graph context.
  • Includes five demo applications: Support Bot, Stack Overflow Loader, PDF Reader, Standalone Bot API, and a Svelte-based UI.

Maintenance & Community

The project is maintained by Docker. Community interaction channels are not explicitly mentioned in the README.

Licensing & Compatibility

The repository appears to be under a permissive license, but specific details are not provided in the README. Compatibility for commercial use would depend on the underlying licenses of Langchain, Neo4j, and Ollama.

Limitations & Caveats

The README warns of performance issues with Docker Desktop versions 4.24.x. The setup requires careful configuration of environment variables, especially API keys for cloud-based models.

Health Check
Last commit

4 months ago

Responsiveness

Inactive

Pull Requests (30d)
2
Issues (30d)
1
Star History
265 stars in the last 90 days

Explore Similar Projects

Starred by Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), Tim J. Baek Tim J. Baek(Founder of Open WebUI), and
1 more.

harbor by av

0.3%
2k
CLI tool for local LLM stack orchestration
created 1 year ago
updated 3 weeks ago
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Alex Cheema Alex Cheema(Cofounder of EXO Labs), and
3 more.

Perplexica by ItzCrazyKns

0.3%
23k
AI-powered search engine alternative
created 1 year ago
updated 1 day ago
Feedback? Help us improve.