Elffuss BraidHub

kikocis/GraphRAG-SDK public

Merge pull request #19 from FalkorDB/add-pip-colab

Add pip install to Colab Notebooks
Changeset7fb61a53331b1cea1cd7cbabd811ebe51ccff636ad80f4fe97fc969586467350
Authorgalshubeli <124919062+galshubeli@users.noreply.github.com> · 2024-09-19 11:20 +03:00
CommitterGitHub <noreply@github.com> · 2024-09-19 11:20 +03:00
Parents966c660443d0, 3b7d9d297571

Browse the files at this changeset

3 files changed

modified examples/movies/demo-movies.ipynb +15 −2
@@ -9,6 +9,15 @@
99 "The following example demonstrates the basic usage of this SDK to create a GraphRAG using URLs with auto-detected ontology."
1010 ]
1111 },
12+ {
13+ "cell_type": "code",
14+ "execution_count": null,
15+ "metadata": {},
16+ "outputs": [],
17+ "source": [
18+ "!pip install graphrag_sdk"
19+ ]
20+ },
1221 {
1322 "cell_type": "code",
1423 "execution_count": 1,
@@ -27,12 +36,16 @@
2736 ],
2837 "source": [
2938 "from dotenv import load_dotenv\n",
30- "\n",
3139 "from graphrag_sdk.source import URL\n",
3240 "from graphrag_sdk import KnowledgeGraph, Ontology\n",
3341 "from graphrag_sdk.models.openai import OpenAiGenerativeModel\n",
3442 "from graphrag_sdk.model_config import KnowledgeGraphModelConfig\n",
35- "load_dotenv()\n"
43+ "\n",
44+ "# Load environment variables\n",
45+ "load_dotenv()\n",
46+ "\n",
47+ "# Configuration\n",
48+ "# OPENAI_API_KEY = \"sk-\"# OpenAI API key\n"
3649 ]
3750 },
3851 {
modified examples/trip/demo_orchestrator_trip.ipynb +13 −1
@@ -9,6 +9,15 @@
99 "GraphRAG-SDK provides a powerful tool, enhanced by LLM technology, for building a Multi-Agent-Orchestrator RAG System. This example demonstrates how to create a knowledge graph-based multi-agent system from structured data and how to use the orchestrator to manage the agents and perform question answering."
1010 ]
1111 },
12+ {
13+ "cell_type": "code",
14+ "execution_count": null,
15+ "metadata": {},
16+ "outputs": [],
17+ "source": [
18+ "!pip install graphrag_sdk"
19+ ]
20+ },
1221 {
1322 "cell_type": "code",
1423 "execution_count": 1,
@@ -37,7 +46,10 @@
3746 ")\n",
3847 "\n",
3948 "# Load environment variables\n",
40- "load_dotenv()"
49+ "load_dotenv()\n",
50+ "\n",
51+ "# Configuration\n",
52+ "# OPENAI_API_KEY = \"sk-\"# OpenAI API key"
4153 ]
4254 },
4355 {
modified examples/ufc/demo-ufc.ipynb +11 −0
@@ -9,6 +9,15 @@
99 "GraphRAG-SDK provides a powerful tool, enhanced by LLM technology, to build a Retrieval-Augmented Generation (RAG) system. This example demonstrates how to load UFC HTML files, automatically detect ontology based on 10% of the files, and create a Knowledge Graph (KG) to enable a question-answerable RAG system."
1010 ]
1111 },
12+ {
13+ "cell_type": "code",
14+ "execution_count": null,
15+ "metadata": {},
16+ "outputs": [],
17+ "source": [
18+ "!pip install graphrag_sdk"
19+ ]
20+ },
1221 {
1322 "cell_type": "code",
1423 "execution_count": 1,
@@ -34,6 +43,8 @@
3443 "from graphrag_sdk import KnowledgeGraph, Ontology\n",
3544 "from graphrag_sdk.models.openai import OpenAiGenerativeModel\n",
3645 "from graphrag_sdk.model_config import KnowledgeGraphModelConfig\n",
46+ "\n",
47+ "# Load environment variables\n",
3748 "load_dotenv()\n",
3849 "\n",
3950 "# Configuration\n",