{ "cells": [ { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Ingesting GitHub data, please input the following information:\n", "Ingesting GitHub data...\n", "Ingesting files from the repository...\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "100%|██████████| 75/75 [00:43<00:00, 1.73it/s]\n" ] } ], "source": [ "from cura import github_ingestion\n", "from cura import vector_store\n", "\n", "print(\"Ingesting GitHub data, please input the following information:\")\n", "url = \"MarkCodering/mindify-website\"\n", "access_token = input(\"GitHub Access Token: \")\n", "\n", "print(\"Ingesting GitHub data...\")\n", "github_repo_data = github_ingestion.ingest_github_repo(url, access_token)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Storing GitHub data in ChromaDB...\n" ] } ], "source": [ "collection_name = url.replace(\"/\", \"_\")\n", "collection = vector_store.set_up_chromadb(collection_name)\n", "ids = []\n", "for i in range(len(github_repo_data[0])):\n", " ids.append(str(i))\n", " \n", "print(\"Storing GitHub data in ChromaDB...\")\n", "collection.add(ids=ids, documents=github_repo_data[0])" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Querying the data from the vector store...\n", "---\n", "// @ts-ignore\n", "const features = [\n", " {\n", " title: \"Learn AI Technologies\",\n", " description:\n", " \"We provide online and in-person training to help you learn the latest generative AI technologies.\",\n", " },\n", " {\n", " title: \"Deploy AI Solutions\",\n", " description:\n", " \"We provide a platform for developers to deploy generative AI solutions in their projects.\",\n", " },\n", " {\n", " title: \"Fast Prototyping and Concept Validation\",\n", " description:\n", " \"We help you quickly prototype and validate your AI concepts to bring them to market faster.\",\n", " },\n", "];\n", "---\n", "\n", "
\n", " Mindify is an AI solution company that provides a platform for developers to\n", " learn and deploy generative AI solutions. We deliver online and in-person\n", " training to help you learn the latest AI technologies and deploy them in\n", " your projects. Our mission is to help you bring your AI concepts to market\n", " faster and deliver value to your customers.\n", "
\n", "{item.description}
\n", "\n", " Mindify is an AI solution company that provides a platform for developers to\n", " learn and deploy generative AI solutions. We deliver online and in-person\n", " training to help you learn the latest AI technologies and deploy them in\n", " your projects. Our mission is to help you bring your AI concepts to market\n", " faster and deliver value to your customers.\n", "
\n", "{item.description}
\n", "