Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CE 602/rag project implementation #26795

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/project_ask_ai_dagster/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
OPENAI_API_KEY=
GITHUB_TOKEN=
DOCS_SITEMAP=
PINECONE_API_KEY=
PINECONE_ENV=
8 changes: 8 additions & 0 deletions examples/project_ask_ai_dagster/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.env
.venv/
__pycache__/
test.py
github_knowledge_base/
.vscode/
*.sqlite3
data/*
51 changes: 51 additions & 0 deletions examples/project_ask_ai_dagster/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Dagster Support Bot Rag Application

## Project Overview

This project implements a support bot using Retrieval-Augmented Generation (RAG) with OpenAI and Pinecone vector database, orchestrated using Dagster for reliable data ingestion and retrieval pipelines.

## Features

- RAG-Powered Support Bot: Leverages advanced retrieval and generation techniques
- Pinecone Vector Database: Efficient semantic search and document retrieval
- Dagster Orchestration: Robust pipeline management for ingestion and retrieval processes
- OpenAI Integration: Powerful language model for generating responses

## Data Sources

1. Dagster Github Repository Issues
2. Dagster Github Repository Discussions
3. Dagster Docs Website

## Prerequisites

- Python 3.8+
- OpenAI API Key
- Pinecone Account and API Key
- Dagster
- Webscraping

## Environment variables

For the pipeline to be able to pull releases information from Github, you'll need inform it of your Github credentials, via environment variables:
OPENAI_API_KEY=[Instructions](https://platform.openai.com/docs/quickstart)
DOCS_SITEMAP=This is left as an excersize to the reader
PINECONE_API_KEY=[Instructions](https://docs.pinecone.io/guides/get-started/quickstart)
GITHUB_TOKEN=[Instructions](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)

## Ingestion Pipeline

The ingestion pipeline handles:

Document loading
Text splitting
Embedding generation
Vector storage in Pinecone

## Retrieval Pipeline

The retrieval pipeline manages:

Query embedding
Semantic search in Pinecone
Response generation with OpenAI
6 changes: 6 additions & 0 deletions examples/project_ask_ai_dagster/dagster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
run_coordinator:
module: dagster.core.run_coordinator
class: QueuedRunCoordinator

concurrency:
default_op_concurrency_limit: 1
3 changes: 3 additions & 0 deletions examples/project_ask_ai_dagster/lineage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Loading