<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. --------- Co-authored-by: Igor Ilic <igorilic03@gmail.com>
1227 lines
2.5 MiB
Vendored
1227 lines
2.5 MiB
Vendored
{
|
||
"cells": [
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "d35ac8ce-0f92-46f5-9ba4-a46970f0ce19",
|
||
"metadata": {},
|
||
"source": [
|
||
"# Cognee - Get Started"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "bd981778-0c84-4542-8e6f-1a7712184873",
|
||
"metadata": {
|
||
"editable": true,
|
||
"slideshow": {
|
||
"slide_type": ""
|
||
},
|
||
"tags": []
|
||
},
|
||
"source": []
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "d8e606b1-94d3-43ce-bb4b-dbadff7f4ca6",
|
||
"metadata": {},
|
||
"source": [
|
||
"## How to enable LLM to connect to your data\n",
|
||
"\n",
|
||
"\n",
|
||
"\n",
|
||
"\n",
|
||
"#### Let's try and convert what is a large amount of unorganized data into structured graph that we can give to LLMs\n",
|
||
"#### Here is an example of some data chunks you sent to LLM to get a better answer to a question when sending LLM prompts"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "cb74c44c58f052f1",
|
||
"metadata": {},
|
||
"source": [
|
||
""
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "fd7d5dab855e3234",
|
||
"metadata": {},
|
||
"source": [
|
||
"#### What if we could let LLM interact in natural language with a structured system like this:"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "683c557088782e47",
|
||
"metadata": {},
|
||
"source": [
|
||
""
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "1bf1fa3631dc03ed",
|
||
"metadata": {},
|
||
"source": [
|
||
"#### How we do it\n",
|
||
"We use Knowledge Graphs. Knowledge graphs simply map out knowledge, linking specific facts and their connections. When Large Language Models (LLMs) process text, they infer these links, leading to occasional inaccuracies due to their probabilistic nature. Clearly defined relationships enhance their accuracy. This structured approach can extend beyond concepts to document layouts, pages, or other organizational schemas.\n",
|
||
"\n"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "074f0ea8-c659-4736-be26-be4b0e5ac665",
|
||
"metadata": {},
|
||
"source": [
|
||
"### Demo time"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "0587d91d",
|
||
"metadata": {},
|
||
"source": [
|
||
"First let's define some data that we will cognify and perform a search on"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 1,
|
||
"id": "df16431d0f48b006",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2025-02-09T21:32:37.309629Z",
|
||
"start_time": "2025-02-09T21:32:37.305105Z"
|
||
}
|
||
},
|
||
"outputs": [],
|
||
"source": [
|
||
"job_position = \"\"\"Senior Data Scientist (Machine Learning)\n",
|
||
"\n",
|
||
"Company: TechNova Solutions\n",
|
||
"Location: San Francisco, CA\n",
|
||
"\n",
|
||
"Job Description:\n",
|
||
"\n",
|
||
"TechNova Solutions is seeking a Senior Data Scientist specializing in Machine Learning to join our dynamic analytics team. The ideal candidate will have a strong background in developing and deploying machine learning models, working with large datasets, and translating complex data into actionable insights.\n",
|
||
"\n",
|
||
"Responsibilities:\n",
|
||
"\n",
|
||
"Develop and implement advanced machine learning algorithms and models.\n",
|
||
"Analyze large, complex datasets to extract meaningful patterns and insights.\n",
|
||
"Collaborate with cross-functional teams to integrate predictive models into products.\n",
|
||
"Stay updated with the latest advancements in machine learning and data science.\n",
|
||
"Mentor junior data scientists and provide technical guidance.\n",
|
||
"Qualifications:\n",
|
||
"\n",
|
||
"Master’s or Ph.D. in Data Science, Computer Science, Statistics, or a related field.\n",
|
||
"5+ years of experience in data science and machine learning.\n",
|
||
"Proficient in Python, R, and SQL.\n",
|
||
"Experience with deep learning frameworks (e.g., TensorFlow, PyTorch).\n",
|
||
"Strong problem-solving skills and attention to detail.\n",
|
||
"Candidate CVs\n",
|
||
"\"\"\""
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 2,
|
||
"id": "9086abf3af077ab4",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2025-02-09T21:32:37.869475Z",
|
||
"start_time": "2025-02-09T21:32:37.867374Z"
|
||
}
|
||
},
|
||
"outputs": [],
|
||
"source": [
|
||
"job_1 = \"\"\"\n",
|
||
"CV 1: Relevant\n",
|
||
"Name: Dr. Emily Carter\n",
|
||
"Contact Information:\n",
|
||
"\n",
|
||
"Email: emily.carter@example.com\n",
|
||
"Phone: (555) 123-4567\n",
|
||
"Summary:\n",
|
||
"\n",
|
||
"Senior Data Scientist with over 8 years of experience in machine learning and predictive analytics. Expertise in developing advanced algorithms and deploying scalable models in production environments.\n",
|
||
"\n",
|
||
"Education:\n",
|
||
"\n",
|
||
"Ph.D. in Computer Science, Stanford University (2014)\n",
|
||
"B.S. in Mathematics, University of California, Berkeley (2010)\n",
|
||
"Experience:\n",
|
||
"\n",
|
||
"Senior Data Scientist, InnovateAI Labs (2016 – Present)\n",
|
||
"Led a team in developing machine learning models for natural language processing applications.\n",
|
||
"Implemented deep learning algorithms that improved prediction accuracy by 25%.\n",
|
||
"Collaborated with cross-functional teams to integrate models into cloud-based platforms.\n",
|
||
"Data Scientist, DataWave Analytics (2014 – 2016)\n",
|
||
"Developed predictive models for customer segmentation and churn analysis.\n",
|
||
"Analyzed large datasets using Hadoop and Spark frameworks.\n",
|
||
"Skills:\n",
|
||
"\n",
|
||
"Programming Languages: Python, R, SQL\n",
|
||
"Machine Learning: TensorFlow, Keras, Scikit-Learn\n",
|
||
"Big Data Technologies: Hadoop, Spark\n",
|
||
"Data Visualization: Tableau, Matplotlib\n",
|
||
"\"\"\""
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 3,
|
||
"id": "a9de0cc07f798b7f",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2025-02-09T21:32:38.269062Z",
|
||
"start_time": "2025-02-09T21:32:38.267194Z"
|
||
}
|
||
},
|
||
"outputs": [],
|
||
"source": [
|
||
"job_2 = \"\"\"\n",
|
||
"CV 2: Relevant\n",
|
||
"Name: Michael Rodriguez\n",
|
||
"Contact Information:\n",
|
||
"\n",
|
||
"Email: michael.rodriguez@example.com\n",
|
||
"Phone: (555) 234-5678\n",
|
||
"Summary:\n",
|
||
"\n",
|
||
"Data Scientist with a strong background in machine learning and statistical modeling. Skilled in handling large datasets and translating data into actionable business insights.\n",
|
||
"\n",
|
||
"Education:\n",
|
||
"\n",
|
||
"M.S. in Data Science, Carnegie Mellon University (2013)\n",
|
||
"B.S. in Computer Science, University of Michigan (2011)\n",
|
||
"Experience:\n",
|
||
"\n",
|
||
"Senior Data Scientist, Alpha Analytics (2017 – Present)\n",
|
||
"Developed machine learning models to optimize marketing strategies.\n",
|
||
"Reduced customer acquisition cost by 15% through predictive modeling.\n",
|
||
"Data Scientist, TechInsights (2013 – 2017)\n",
|
||
"Analyzed user behavior data to improve product features.\n",
|
||
"Implemented A/B testing frameworks to evaluate product changes.\n",
|
||
"Skills:\n",
|
||
"\n",
|
||
"Programming Languages: Python, Java, SQL\n",
|
||
"Machine Learning: Scikit-Learn, XGBoost\n",
|
||
"Data Visualization: Seaborn, Plotly\n",
|
||
"Databases: MySQL, MongoDB\n",
|
||
"\"\"\""
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 4,
|
||
"id": "185ff1c102d06111",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2025-02-09T21:32:38.738093Z",
|
||
"start_time": "2025-02-09T21:32:38.736147Z"
|
||
}
|
||
},
|
||
"outputs": [],
|
||
"source": [
|
||
"job_3 = \"\"\"\n",
|
||
"CV 3: Relevant\n",
|
||
"Name: Sarah Nguyen\n",
|
||
"Contact Information:\n",
|
||
"\n",
|
||
"Email: sarah.nguyen@example.com\n",
|
||
"Phone: (555) 345-6789\n",
|
||
"Summary:\n",
|
||
"\n",
|
||
"Data Scientist specializing in machine learning with 6 years of experience. Passionate about leveraging data to drive business solutions and improve product performance.\n",
|
||
"\n",
|
||
"Education:\n",
|
||
"\n",
|
||
"M.S. in Statistics, University of Washington (2014)\n",
|
||
"B.S. in Applied Mathematics, University of Texas at Austin (2012)\n",
|
||
"Experience:\n",
|
||
"\n",
|
||
"Data Scientist, QuantumTech (2016 – Present)\n",
|
||
"Designed and implemented machine learning algorithms for financial forecasting.\n",
|
||
"Improved model efficiency by 20% through algorithm optimization.\n",
|
||
"Junior Data Scientist, DataCore Solutions (2014 – 2016)\n",
|
||
"Assisted in developing predictive models for supply chain optimization.\n",
|
||
"Conducted data cleaning and preprocessing on large datasets.\n",
|
||
"Skills:\n",
|
||
"\n",
|
||
"Programming Languages: Python, R\n",
|
||
"Machine Learning Frameworks: PyTorch, Scikit-Learn\n",
|
||
"Statistical Analysis: SAS, SPSS\n",
|
||
"Cloud Platforms: AWS, Azure\n",
|
||
"\"\"\""
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 5,
|
||
"id": "d55ce4c58f8efb67",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2025-02-09T21:32:39.237542Z",
|
||
"start_time": "2025-02-09T21:32:39.235742Z"
|
||
}
|
||
},
|
||
"outputs": [],
|
||
"source": [
|
||
"job_4 = \"\"\"\n",
|
||
"CV 4: Not Relevant\n",
|
||
"Name: David Thompson\n",
|
||
"Contact Information:\n",
|
||
"\n",
|
||
"Email: david.thompson@example.com\n",
|
||
"Phone: (555) 456-7890\n",
|
||
"Summary:\n",
|
||
"\n",
|
||
"Creative Graphic Designer with over 8 years of experience in visual design and branding. Proficient in Adobe Creative Suite and passionate about creating compelling visuals.\n",
|
||
"\n",
|
||
"Education:\n",
|
||
"\n",
|
||
"B.F.A. in Graphic Design, Rhode Island School of Design (2012)\n",
|
||
"Experience:\n",
|
||
"\n",
|
||
"Senior Graphic Designer, CreativeWorks Agency (2015 – Present)\n",
|
||
"Led design projects for clients in various industries.\n",
|
||
"Created branding materials that increased client engagement by 30%.\n",
|
||
"Graphic Designer, Visual Innovations (2012 – 2015)\n",
|
||
"Designed marketing collateral, including brochures, logos, and websites.\n",
|
||
"Collaborated with the marketing team to develop cohesive brand strategies.\n",
|
||
"Skills:\n",
|
||
"\n",
|
||
"Design Software: Adobe Photoshop, Illustrator, InDesign\n",
|
||
"Web Design: HTML, CSS\n",
|
||
"Specialties: Branding and Identity, Typography\n",
|
||
"\"\"\""
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 6,
|
||
"id": "ca4ecc32721ad332",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2025-02-09T21:32:39.740387Z",
|
||
"start_time": "2025-02-09T21:32:39.738768Z"
|
||
}
|
||
},
|
||
"outputs": [],
|
||
"source": [
|
||
"job_5 = \"\"\"\n",
|
||
"CV 5: Not Relevant\n",
|
||
"Name: Jessica Miller\n",
|
||
"Contact Information:\n",
|
||
"\n",
|
||
"Email: jessica.miller@example.com\n",
|
||
"Phone: (555) 567-8901\n",
|
||
"Summary:\n",
|
||
"\n",
|
||
"Experienced Sales Manager with a strong track record in driving sales growth and building high-performing teams. Excellent communication and leadership skills.\n",
|
||
"\n",
|
||
"Education:\n",
|
||
"\n",
|
||
"B.A. in Business Administration, University of Southern California (2010)\n",
|
||
"Experience:\n",
|
||
"\n",
|
||
"Sales Manager, Global Enterprises (2015 – Present)\n",
|
||
"Managed a sales team of 15 members, achieving a 20% increase in annual revenue.\n",
|
||
"Developed sales strategies that expanded customer base by 25%.\n",
|
||
"Sales Representative, Market Leaders Inc. (2010 – 2015)\n",
|
||
"Consistently exceeded sales targets and received the 'Top Salesperson' award in 2013.\n",
|
||
"Skills:\n",
|
||
"\n",
|
||
"Sales Strategy and Planning\n",
|
||
"Team Leadership and Development\n",
|
||
"CRM Software: Salesforce, Zoho\n",
|
||
"Negotiation and Relationship Building\n",
|
||
"\"\"\""
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "4415446a",
|
||
"metadata": {},
|
||
"source": [
|
||
" Please add the necessary environment information bellow:"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 7,
|
||
"id": "bce39dc6",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2025-02-09T21:31:46.855966Z",
|
||
"start_time": "2025-02-09T21:31:46.847681Z"
|
||
}
|
||
},
|
||
"outputs": [],
|
||
"source": [
|
||
"import os\n",
|
||
"\n",
|
||
"# Setting environment variables\n",
|
||
"if \"GRAPHISTRY_USERNAME\" not in os.environ:\n",
|
||
" os.environ[\"GRAPHISTRY_USERNAME\"] = \"\"\n",
|
||
"\n",
|
||
"if \"GRAPHISTRY_PASSWORD\" not in os.environ:\n",
|
||
" os.environ[\"GRAPHISTRY_PASSWORD\"] = \"\"\n",
|
||
"\n",
|
||
"if \"LLM_API_KEY\" not in os.environ:\n",
|
||
" os.environ[\"LLM_API_KEY\"] = \"\"\n",
|
||
"\n",
|
||
"# \"neo4j\" or \"networkx\"\n",
|
||
"os.environ[\"GRAPH_DATABASE_PROVIDER\"] = \"networkx\"\n",
|
||
"# Not needed if using networkx\n",
|
||
"# os.environ[\"GRAPH_DATABASE_URL\"]=\"\"\n",
|
||
"# os.environ[\"GRAPH_DATABASE_USERNAME\"]=\"\"\n",
|
||
"# os.environ[\"GRAPH_DATABASE_PASSWORD\"]=\"\"\n",
|
||
"\n",
|
||
"# \"pgvector\", \"qdrant\", \"weaviate\" or \"lancedb\"\n",
|
||
"os.environ[\"VECTOR_DB_PROVIDER\"] = \"lancedb\"\n",
|
||
"# Not needed if using \"lancedb\" or \"pgvector\"\n",
|
||
"# os.environ[\"VECTOR_DB_URL\"]=\"\"\n",
|
||
"# os.environ[\"VECTOR_DB_KEY\"]=\"\"\n",
|
||
"\n",
|
||
"# Relational Database provider \"sqlite\" or \"postgres\"\n",
|
||
"os.environ[\"DB_PROVIDER\"] = \"sqlite\"\n",
|
||
"\n",
|
||
"# Database name\n",
|
||
"os.environ[\"DB_NAME\"] = \"cognee_db\"\n",
|
||
"\n",
|
||
"# Postgres specific parameters (Only if Postgres or PGVector is used)\n",
|
||
"# os.environ[\"DB_HOST\"]=\"127.0.0.1\"\n",
|
||
"# os.environ[\"DB_PORT\"]=\"5432\"\n",
|
||
"# os.environ[\"DB_USERNAME\"]=\"cognee\"\n",
|
||
"# os.environ[\"DB_PASSWORD\"]=\"cognee\""
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 8,
|
||
"id": "9f1a1dbd",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2025-02-09T21:32:56.703003Z",
|
||
"start_time": "2025-02-09T21:32:47.375684Z"
|
||
}
|
||
},
|
||
"outputs": [
|
||
{
|
||
"name": "stderr",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"\n",
|
||
"\u001b[2m2025-06-18T18:00:12.657639\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mDeleted old log file: /Users/borisarzentar/Projects/Topoteretes/cognee/logs/2025-06-18_16-18-52.log\u001b[0m [\u001b[0m\u001b[1m\u001b[34mcognee.shared.logging_utils\u001b[0m]\u001b[0m\n",
|
||
"\n",
|
||
"\u001b[2m2025-06-18T18:00:12.658131\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mLogging initialized \u001b[0m [\u001b[0m\u001b[1m\u001b[34mcognee.shared.logging_utils\u001b[0m]\u001b[0m \u001b[36mcognee_version\u001b[0m=\u001b[35m0.1.42-dev\u001b[0m \u001b[36mos_info\u001b[0m=\u001b[35m'Darwin 24.5.0 (Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:25 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6020)'\u001b[0m \u001b[36mpython_version\u001b[0m=\u001b[35m3.11.5\u001b[0m \u001b[36mstructlog_version\u001b[0m=\u001b[35m25.4.0\u001b[0m\n",
|
||
"\n",
|
||
"\u001b[1mHTTP Request: GET https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json \"HTTP/1.1 200 OK\"\u001b[0m\n",
|
||
"/Users/borisarzentar/Projects/Topoteretes/cognee/.venv/lib/python3.11/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
|
||
" from .autonotebook import tqdm as notebook_tqdm\n",
|
||
"/Users/borisarzentar/Projects/Topoteretes/cognee/.venv/lib/python3.11/site-packages/dlt/helpers/dbt/__init__.py:3: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.\n",
|
||
" import pkg_resources\n",
|
||
"\n",
|
||
"\u001b[2m2025-06-18T18:00:16.570235\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCleared all data from graph while preserving structure\u001b[0m [\u001b[0m\u001b[1m\u001b[34mcognee.shared.logging_utils\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:00:16.711037\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mDatabase deleted successfully.\u001b[0m [\u001b[0m\u001b[1m\u001b[34mcognee.shared.logging_utils\u001b[0m]\u001b[0m"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"# Reset the cognee system with the following command:\n",
|
||
"\n",
|
||
"import cognee\n",
|
||
"\n",
|
||
"await cognee.prune.prune_data()\n",
|
||
"await cognee.prune.prune_system(metadata=True)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "383d6971",
|
||
"metadata": {},
|
||
"source": [
|
||
"#### After we have defined and gathered our data let's add it to cognee "
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 9,
|
||
"id": "904df61ba484a8e5",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2025-02-09T21:33:07.412263Z",
|
||
"start_time": "2025-02-09T21:33:04.807282Z"
|
||
}
|
||
},
|
||
"outputs": [
|
||
{
|
||
"name": "stderr",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"\n",
|
||
"\u001b[1mLangfuse client is disabled since no public_key was provided as a parameter or environment variable 'LANGFUSE_PUBLIC_KEY'. See our docs: https://langfuse.com/docs/sdk/python/low-level-sdk#initialize-client\u001b[0m\u001b[92m20:00:16 - LiteLLM:INFO\u001b[0m: utils.py:3101 - \n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\n",
|
||
"\u001b[1m\n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\u001b[0m\u001b[92m20:00:19 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\n",
|
||
"\u001b[1mEmbeddingRateLimiter initialized: enabled=False, requests_limit=60, interval_seconds=60\u001b[0m\u001b[92m20:00:19 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:00:19 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:00:19.441863\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mPipeline run started: `428bda5b-e9ed-5271-911b-2b3085d24e15`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks(tasks: [Task], data)\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:00:19.442237\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task started: `resolve_data_directories`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:00:19.443087\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task started: `ingest_data`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m"
|
||
]
|
||
},
|
||
{
|
||
"name": "stdout",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"User f8d1e630-36d9-482c-b9b9-3393095f35ed has registered.\n"
|
||
]
|
||
},
|
||
{
|
||
"name": "stderr",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"\n",
|
||
"\u001b[2m2025-06-18T18:00:19.851761\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task completed: `ingest_data`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:00:19.852141\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task completed: `resolve_data_directories`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:00:19.852401\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mPipeline run completed: `428bda5b-e9ed-5271-911b-2b3085d24e15`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks(tasks: [Task], data)\u001b[0m]\u001b[0m"
|
||
]
|
||
},
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"PipelineRunCompleted(status='PipelineRunCompleted', pipeline_run_id=UUID('da7c9789-2d8c-56a8-9e6a-2500534aa25d'), payload=None)"
|
||
]
|
||
},
|
||
"execution_count": 9,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"import cognee\n",
|
||
"\n",
|
||
"await cognee.add([job_1, job_2, job_3, job_4, job_5, job_position], \"example\")"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "0f15c5b1",
|
||
"metadata": {},
|
||
"source": [
|
||
"All good, let's cognify it."
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 10,
|
||
"id": "7c431fdef4921ae0",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2025-02-09T21:33:21.450585Z",
|
||
"start_time": "2025-02-09T21:33:21.446326Z"
|
||
}
|
||
},
|
||
"outputs": [],
|
||
"source": [
|
||
"from cognee.shared.data_models import KnowledgeGraph\n",
|
||
"from cognee.modules.data.models import Dataset, Data\n",
|
||
"from cognee.modules.data.methods.get_dataset_data import get_dataset_data\n",
|
||
"from cognee.modules.cognify.config import get_cognify_config\n",
|
||
"from cognee.modules.pipelines.tasks.task import Task\n",
|
||
"from cognee.modules.pipelines import run_tasks\n",
|
||
"from cognee.modules.users.models import User\n",
|
||
"from cognee.tasks.documents import (\n",
|
||
" check_permissions_on_dataset,\n",
|
||
" classify_documents,\n",
|
||
" extract_chunks_from_documents,\n",
|
||
")\n",
|
||
"from cognee.infrastructure.llm import get_max_chunk_tokens\n",
|
||
"from cognee.tasks.graph import extract_graph_from_data\n",
|
||
"from cognee.tasks.storage import add_data_points\n",
|
||
"from cognee.tasks.summarization import summarize_text\n",
|
||
"\n",
|
||
"\n",
|
||
"async def run_cognify_pipeline(dataset: Dataset, user: User = None):\n",
|
||
" data_documents: list[Data] = await get_dataset_data(dataset_id=dataset.id)\n",
|
||
"\n",
|
||
" try:\n",
|
||
" cognee_config = get_cognify_config()\n",
|
||
"\n",
|
||
" tasks = [\n",
|
||
" Task(classify_documents),\n",
|
||
" Task(check_permissions_on_dataset, user=user, permissions=[\"write\"]),\n",
|
||
" Task(\n",
|
||
" extract_chunks_from_documents, max_chunk_size=get_max_chunk_tokens()\n",
|
||
" ), # Extract text chunks based on the document type.\n",
|
||
" Task(\n",
|
||
" extract_graph_from_data, graph_model=KnowledgeGraph,\n",
|
||
" task_config={\"batch_size\": 10}\n",
|
||
" ), # Generate knowledge graphs from the document chunks.\n",
|
||
" Task(\n",
|
||
" summarize_text,\n",
|
||
" summarization_model=cognee_config.summarization_model,\n",
|
||
" task_config={\"batch_size\": 10},\n",
|
||
" ),\n",
|
||
" Task(add_data_points, task_config={\"batch_size\": 10}),\n",
|
||
" ]\n",
|
||
"\n",
|
||
" pipeline_run = run_tasks(tasks, dataset.id, data_documents, user, \"cognify_pipeline\", context={\"dataset\": dataset})\n",
|
||
" pipeline_run_status = None\n",
|
||
"\n",
|
||
" async for run_status in pipeline_run:\n",
|
||
" pipeline_run_status = run_status\n",
|
||
"\n",
|
||
" except Exception as error:\n",
|
||
" raise error"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 11,
|
||
"id": "f0a91b99c6215e09",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2025-02-09T21:33:50.228396Z",
|
||
"start_time": "2025-02-09T21:33:27.935791Z"
|
||
}
|
||
},
|
||
"outputs": [
|
||
{
|
||
"name": "stderr",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"\n",
|
||
"\u001b[2m2025-06-18T18:00:19.871430\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mPipeline run started: `f5945ea1-08b8-53d1-85f6-a935ff7a2932`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks(tasks: [Task], data)\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:00:19.871830\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task started: `classify_documents`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:00:19.872288\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task started: `check_permissions_on_dataset`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:00:19.875133\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mAsync Generator task started: `extract_chunks_from_documents`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:00:19.888621\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task started: `extract_graph_from_data`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\u001b[92m20:00:19 - LiteLLM:INFO\u001b[0m: utils.py:3101 - \n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\n",
|
||
"\u001b[1m\n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\u001b[0m\u001b[92m20:00:19 - LiteLLM:INFO\u001b[0m: utils.py:3101 - \n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\n",
|
||
"\u001b[1m\n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\u001b[0m\u001b[92m20:00:19 - LiteLLM:INFO\u001b[0m: utils.py:3101 - \n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\n",
|
||
"\u001b[1m\n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\u001b[0m\u001b[92m20:00:19 - LiteLLM:INFO\u001b[0m: utils.py:3101 - \n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\n",
|
||
"\u001b[1m\n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\u001b[0m\u001b[92m20:00:19 - LiteLLM:INFO\u001b[0m: utils.py:3101 - \n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\n",
|
||
"\u001b[1m\n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\u001b[0m\u001b[92m20:00:19 - LiteLLM:INFO\u001b[0m: utils.py:3101 - \n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\n",
|
||
"\u001b[1m\n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\u001b[0m\u001b[92m20:00:36 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:00:36 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:00:39 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:00:39 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:00:39 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:00:39 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:00:44 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:00:44 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:00:52 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:00:52 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:01:19 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:01:19 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.955570\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mOntology file 'None' not found. No owl ontology will be attached to the graph.\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.985119\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'person' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.985588\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'david thompson' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.986121\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'company' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.986454\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'creativeworks agency' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.986848\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'visual innovations' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.987225\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'educationalinstitution' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.987528\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'rhode island school of design' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.987873\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'degree' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.988230\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'b.f.a. in graphic design' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.988558\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'software' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.988873\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'adobe creative suite' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.989215\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'dr. emily carter' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.989517\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'place' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.989810\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'stanford university' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.990102\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'university of california, berkeley' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.990416\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'organization' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.990681\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'innovateai labs' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.990970\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'datawave analytics' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.991274\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'ph.d. in computer science' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.991559\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'b.s. in mathematics' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.991841\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'date' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.992072\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for '2014' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.992282\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for '2010' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.992697\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'technology' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.993033\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'machine learning' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.993327\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'predictive analytics' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.993696\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'natural language processing' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.994020\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'deep learning' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.994404\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'cloud-based platforms' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.994801\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'application' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.995274\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'customer segmentation' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.995645\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'churn analysis' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.996031\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'hadoop' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.996459\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'spark' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.996828\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'programming language' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.997218\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'python' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.997627\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'r' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.997960\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'sql' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.998346\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'machine learning library' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.998616\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'tensorflow' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.998890\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'keras' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.999219\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'scikit-learn' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.999546\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'data visualization tool' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:19.999841\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'tableau' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.000148\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'matplotlib' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.000577\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'sarah nguyen' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.000911\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'university of washington' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.001331\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'university of texas at austin' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.001668\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'quantumtech' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.001991\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'datacore solutions' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.002317\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'm.s. in statistics' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.002540\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'b.s. in applied mathematics' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.002823\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'year of experience' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.003312\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'jessica miller' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.003621\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'global enterprises' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.003905\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'market leaders inc.' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.004172\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'educational_institution' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.004531\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'university of southern california' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.004885\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for '2010' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.005301\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for '2015-present' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.005724\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for '2010-2015' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.006076\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'michael rodriguez' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.006495\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'alpha analytics' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.006894\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'techinsights' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.007225\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'carnegie mellon university' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.007472\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'university of michigan' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.007735\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for '2013' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.008050\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for '2011' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.008364\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for '2017' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.008582\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'present' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.008931\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'technova solutions' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.009207\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'job_title' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.009472\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'senior data scientist' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.009800\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'location' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.010157\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'san francisco, ca' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.010428\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'field' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.010706\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'data science' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.011026\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'framework' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.011371\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'pytorch' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.011583\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'master’s or ph.d.' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.011876\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'experience' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.012163\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for '5+ years of experience' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.012471\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'responsibility' in category 'classes'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:20.012702\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mNo close match found for 'mentorship' in category 'individuals'\u001b[0m [\u001b[0m\u001b[1m\u001b[34mOntologyAdapter\u001b[0m]\u001b[0m\u001b[92m20:01:20 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\u001b[92m20:01:21 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\u001b[92m20:01:21 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\u001b[92m20:01:21 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\u001b[92m20:01:22 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:22.115646\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task started: `summarize_text`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\u001b[92m20:01:22 - LiteLLM:INFO\u001b[0m: utils.py:3101 - \n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\n",
|
||
"\u001b[1m\n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\u001b[0m\u001b[92m20:01:22 - LiteLLM:INFO\u001b[0m: utils.py:3101 - \n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\n",
|
||
"\u001b[1m\n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\u001b[0m\u001b[92m20:01:22 - LiteLLM:INFO\u001b[0m: utils.py:3101 - \n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\n",
|
||
"\u001b[1m\n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\u001b[0m\u001b[92m20:01:22 - LiteLLM:INFO\u001b[0m: utils.py:3101 - \n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\n",
|
||
"\u001b[1m\n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\u001b[0m\u001b[92m20:01:22 - LiteLLM:INFO\u001b[0m: utils.py:3101 - \n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\n",
|
||
"\u001b[1m\n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\u001b[0m\u001b[92m20:01:22 - LiteLLM:INFO\u001b[0m: utils.py:3101 - \n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\n",
|
||
"\u001b[1m\n",
|
||
"LiteLLM completion() model= gpt-4o-mini; provider = azure\u001b[0m\u001b[92m20:01:27 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:01:27 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:01:28 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:01:28 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:01:28 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:01:28 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:01:30 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:01:30 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:01:30 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:01:30 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:01:31 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\u001b[92m20:01:31 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/gpt-4o-mini-2024-07-18\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:31.461451\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task started: `add_data_points`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\u001b[92m20:01:31 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\u001b[92m20:01:32 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\u001b[92m20:01:33 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\u001b[92m20:01:33 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\u001b[92m20:01:33 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\u001b[92m20:01:34 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:34.168179\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task completed: `add_data_points`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:34.168797\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task completed: `summarize_text`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:34.169251\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task completed: `extract_graph_from_data`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:34.169673\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mAsync Generator task completed: `extract_chunks_from_documents`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:34.169999\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task completed: `check_permissions_on_dataset`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:34.170378\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mCoroutine task completed: `classify_documents`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks_base\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:34.170769\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mPipeline run completed: `f5945ea1-08b8-53d1-85f6-a935ff7a2932`\u001b[0m [\u001b[0m\u001b[1m\u001b[34mrun_tasks(tasks: [Task], data)\u001b[0m]\u001b[0m"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"from cognee.modules.users.methods import get_default_user\n",
|
||
"from cognee.modules.data.methods import get_datasets_by_name\n",
|
||
"from cognee.modules.users.methods import get_user\n",
|
||
"\n",
|
||
"default_user = await get_default_user()\n",
|
||
"\n",
|
||
"user = await get_user(default_user.id)\n",
|
||
"\n",
|
||
"datasets = await get_datasets_by_name([\"example\"], user.id)\n",
|
||
"\n",
|
||
"await run_cognify_pipeline(datasets[0], user)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 12,
|
||
"id": "9dd29caf28c272d1",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2025-02-09T21:42:39.479622Z",
|
||
"start_time": "2025-02-09T21:42:39.469795Z"
|
||
}
|
||
},
|
||
"outputs": [
|
||
{
|
||
"name": "stderr",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"\n",
|
||
"\u001b[2m2025-06-18T18:01:34.182929\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mGraph visualization saved as /Users/borisarzentar/Projects/Topoteretes/cognee/notebooks/.artifacts/graph_visualization.html\u001b[0m [\u001b[0m\u001b[1m\u001b[34mcognee.shared.logging_utils\u001b[0m]\u001b[0m\n",
|
||
"\u001b[2m2025-06-18T18:01:34.183348\u001b[0m [\u001b[32m\u001b[1minfo \u001b[0m] \u001b[1mThe HTML file has been stored at path: /Users/borisarzentar/Projects/Topoteretes/cognee/notebooks/.artifacts/graph_visualization.html\u001b[0m [\u001b[0m\u001b[1m\u001b[34mcognee.shared.logging_utils\u001b[0m]\u001b[0m"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"import pathlib\n",
|
||
"from cognee.api.v1.visualize import visualize_graph\n",
|
||
"\n",
|
||
"# Use the current working directory instead of __file__:\n",
|
||
"notebook_dir = pathlib.Path.cwd()\n",
|
||
"\n",
|
||
"graph_file_path = (notebook_dir / \".artifacts\" / \"graph_visualization.html\").resolve()\n",
|
||
"\n",
|
||
"# Make sure to convert to string if visualize_graph expects a string\n",
|
||
"b = await visualize_graph(str(graph_file_path))"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 13,
|
||
"id": "9f941848c418d713",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2025-02-09T21:42:59.312945Z",
|
||
"start_time": "2025-02-09T21:42:59.311015Z"
|
||
}
|
||
},
|
||
"outputs": [
|
||
{
|
||
"name": "stdout",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"serving at port 8001\n"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"import http.server\n",
|
||
"import socketserver\n",
|
||
"from threading import Thread\n",
|
||
"\n",
|
||
"PORT = 8001\n",
|
||
"\n",
|
||
"\n",
|
||
"class ServerThread(Thread):\n",
|
||
" def run(self):\n",
|
||
" Handler = http.server.SimpleHTTPRequestHandler\n",
|
||
" with socketserver.TCPServer((\"\", PORT), Handler) as httpd:\n",
|
||
" print(\"serving at port\", PORT)\n",
|
||
" httpd.serve_forever()\n",
|
||
"\n",
|
||
"\n",
|
||
"ServerThread().start()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 14,
|
||
"id": "77d5794d-3561-4c9c-a001-df7d6b0c1968",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"name": "stdout",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"Visualization server running at: http://0.0.0.0:8002\n"
|
||
]
|
||
},
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"<function cognee.shared.utils.start_visualization_server.<locals>.shutdown()>"
|
||
]
|
||
},
|
||
"execution_count": 14,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
},
|
||
{
|
||
"name": "stderr",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"127.0.0.1 - - [18/Jun/2025 20:01:34] \"GET /.artifacts/graph_visualization.html HTTP/1.1\" 200 -\n"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"from cognee.api.v1.visualize import visualization_server\n",
|
||
"\n",
|
||
"visualization_server(port=8002)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 15,
|
||
"id": "030c6aac-650c-42dc-a89b-d21a5f422474",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/html": [
|
||
"\n",
|
||
" <iframe\n",
|
||
" width=\"800\"\n",
|
||
" height=\"600\"\n",
|
||
" src=\"http://127.0.0.1:8002/.artifacts/graph_visualization.html\"\n",
|
||
" frameborder=\"0\"\n",
|
||
" allowfullscreen\n",
|
||
" \n",
|
||
" ></iframe>\n",
|
||
" "
|
||
],
|
||
"text/plain": [
|
||
"<IPython.lib.display.IFrame at 0x6802a5bd0>"
|
||
]
|
||
},
|
||
"execution_count": 15,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"from IPython.display import IFrame, display, HTML\n",
|
||
"\n",
|
||
"IFrame(\"http://127.0.0.1:8002/.artifacts/graph_visualization.html\", width=800, height=600)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "219a6d41",
|
||
"metadata": {},
|
||
"source": [
|
||
" We get the url to the graph on graphistry in the notebook cell bellow, showing nodes and connections made by the cognify process."
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "59e6c3c3",
|
||
"metadata": {},
|
||
"source": [
|
||
" We can also do a search on the data to explore the knowledge."
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 16,
|
||
"id": "e5e7dfc8",
|
||
"metadata": {
|
||
"ExecuteTime": {
|
||
"end_time": "2024-12-24T13:44:16.575843Z",
|
||
"start_time": "2024-12-24T13:44:16.047897Z"
|
||
}
|
||
},
|
||
"outputs": [
|
||
{
|
||
"name": "stderr",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"\u001b[92m20:01:34 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m"
|
||
]
|
||
},
|
||
{
|
||
"name": "stdout",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"{'id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'payload': {'id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'created_at': 1750269692257, 'updated_at': 1750269692257, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'sarah nguyen'}, 'score': 0.5709310173988342}\n",
|
||
"{'id': '198e2ab8-75e9-5931-97ab-da9a5a8e188c', 'payload': {'id': '198e2ab8-75e9-5931-97ab-da9a5a8e188c', 'created_at': 1750269692257, 'updated_at': 1750269692257, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'san francisco, ca'}, 'score': 1.349502682685852}\n",
|
||
"{'id': '435dbd37-ab20-503c-9e99-ab8b8a3484e5', 'payload': {'id': '435dbd37-ab20-503c-9e99-ab8b8a3484e5', 'created_at': 1750269692257, 'updated_at': 1750269692257, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'senior data scientist'}, 'score': 1.3936456441879272}\n",
|
||
"{'id': '36a5e3c8-c5f5-5ab5-8d59-ea69d8b36932', 'payload': {'id': '36a5e3c8-c5f5-5ab5-8d59-ea69d8b36932', 'created_at': 1750269692257, 'updated_at': 1750269692257, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'jessica miller'}, 'score': 1.4041534662246704}\n",
|
||
"{'id': '0e975b3e-7ebe-5572-ad6a-08eae2e2af97', 'payload': {'id': '0e975b3e-7ebe-5572-ad6a-08eae2e2af97', 'created_at': 1750269692256, 'updated_at': 1750269692256, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'ph.d. in computer science'}, 'score': 1.4247756004333496}\n",
|
||
"{'id': '538550fe-80fe-5525-9a79-7da2fd8d8a70', 'payload': {'id': '538550fe-80fe-5525-9a79-7da2fd8d8a70', 'created_at': 1750269692257, 'updated_at': 1750269692257, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'year of experience'}, 'score': 1.4505990743637085}\n",
|
||
"{'id': '73ae630f-7b09-5dce-8c18-45d0a57b30f9', 'payload': {'id': '73ae630f-7b09-5dce-8c18-45d0a57b30f9', 'created_at': 1750269692257, 'updated_at': 1750269692257, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'michael rodriguez'}, 'score': 1.4519352912902832}\n",
|
||
"{'id': 'fe5ea90b-e586-5492-a7a4-71b918c71a20', 'payload': {'id': 'fe5ea90b-e586-5492-a7a4-71b918c71a20', 'created_at': 1750269692257, 'updated_at': 1750269692257, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': '5+ years of experience'}, 'score': 1.4707216024398804}\n",
|
||
"{'id': '29e771c8-4c3f-52de-9511-6b705878e130', 'payload': {'id': '29e771c8-4c3f-52de-9511-6b705878e130', 'created_at': 1750269692257, 'updated_at': 1750269692257, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'dr. emily carter'}, 'score': 1.4710627794265747}\n",
|
||
"{'id': 'd82673ff-ff5e-5436-bc8b-2967d4301b4f', 'payload': {'id': 'd82673ff-ff5e-5436-bc8b-2967d4301b4f', 'created_at': 1750269692257, 'updated_at': 1750269692257, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'm.s. in statistics'}, 'score': 1.471780776977539}\n"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"async def search(\n",
|
||
" vector_engine,\n",
|
||
" collection_name: str,\n",
|
||
" query_text: str = None,\n",
|
||
"):\n",
|
||
" query_vector = (await vector_engine.embedding_engine.embed_text([query_text]))[0]\n",
|
||
"\n",
|
||
" connection = await vector_engine.get_connection()\n",
|
||
" collection = await connection.open_table(collection_name)\n",
|
||
"\n",
|
||
" results = await collection.vector_search(query_vector).limit(10).to_pandas()\n",
|
||
"\n",
|
||
" result_values = list(results.to_dict(\"index\").values())\n",
|
||
"\n",
|
||
" return [\n",
|
||
" dict(\n",
|
||
" id=str(result[\"id\"]),\n",
|
||
" payload=result[\"payload\"],\n",
|
||
" score=result[\"_distance\"],\n",
|
||
" )\n",
|
||
" for result in result_values\n",
|
||
" ]\n",
|
||
"\n",
|
||
"\n",
|
||
"from cognee.infrastructure.databases.vector import get_vector_engine\n",
|
||
"\n",
|
||
"vector_engine = get_vector_engine()\n",
|
||
"results = await search(vector_engine, \"Entity_name\", \"sarah.nguyen@example.com\")\n",
|
||
"for result in results:\n",
|
||
" print(result)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "81fa2b00",
|
||
"metadata": {},
|
||
"source": [
|
||
" We normalize search output scores so the lower the score of the search result is the higher the chance that it's what you're looking for. In the example above we have searched for node entities in the knowledge graph related to \"sarah.nguyen@example.com\""
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "1b94ff96",
|
||
"metadata": {},
|
||
"source": [
|
||
" In the example bellow we'll use cognee search to summarize information regarding the node most related to \"sarah.nguyen@example.com\" in the knowledge graph"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 17,
|
||
"id": "21a3e9a6",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"name": "stderr",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"\u001b[92m20:01:34 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\u001b[92m20:01:34 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m"
|
||
]
|
||
},
|
||
{
|
||
"name": "stdout",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"\n",
|
||
"\\Extracted summaries are:\n",
|
||
"\n",
|
||
"{'id': '63284a74-214f-530b-9ec2-0197eeb71e6a', 'created_at': 1750269691541, 'updated_at': 1750269691541, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'Experienced Graphic Designer with 8+ years in visual design and branding, adept in Adobe Creative Suite, dedicated to crafting impactful visuals.'}\n",
|
||
"\n",
|
||
"{'id': '32be736f-7529-5ffd-8a28-a3c4b491def3', 'created_at': 1750269691541, 'updated_at': 1750269691541, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'Senior Data Scientist (Machine Learning) position at TechNova Solutions in San Francisco, CA.'}\n",
|
||
"\n",
|
||
"{'id': 'f1022c1c-f20a-5406-9d00-2a527c01cea0', 'created_at': 1750269691541, 'updated_at': 1750269691541, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'Experienced Data Scientist with over 8 years specializing in machine learning and predictive analytics.'}\n",
|
||
"\n",
|
||
"{'id': 'ef80f687-6dd8-5cba-b1a7-4d6dfc163692', 'created_at': 1750269691541, 'updated_at': 1750269691541, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'Data Scientist with expertise in machine learning and statistical analysis, adept at managing large datasets and deriving actionable insights for businesses.'}\n",
|
||
"\n",
|
||
"{'id': '0857c07d-c806-5e6e-ac08-d512115ca80d', 'created_at': 1750269691541, 'updated_at': 1750269691541, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'Experienced Data Scientist with a focus on machine learning, possessing 6 years in the field. Committed to utilizing data for enhancing business solutions and product effectiveness.'}\n",
|
||
"\n",
|
||
"{'id': '5aff0f39-c4df-52df-a1d6-4bf005c6672e', 'created_at': 1750269691541, 'updated_at': 1750269691541, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'Experienced Sales Manager with a proven history of driving revenue growth and developing effective teams. Strong leadership and communication abilities.'}\n",
|
||
"\n"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"from cognee.api.v1.search import SearchType\n",
|
||
"\n",
|
||
"node = (await vector_engine.search(\"Entity_name\", \"sarah.nguyen@example.com\"))[0]\n",
|
||
"node_name = node.payload[\"text\"]\n",
|
||
"\n",
|
||
"search_results = await cognee.search(query_type=SearchType.SUMMARIES, query_text=node_name)\n",
|
||
"print(\"\\n\\Extracted summaries are:\\n\")\n",
|
||
"for result in search_results:\n",
|
||
" print(f\"{result}\\n\")"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "fd6e5fe2",
|
||
"metadata": {},
|
||
"source": [
|
||
"In this example we'll use cognee search to find chunks in which the node most related to \"sarah.nguyen@example.com\" is a part of"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 18,
|
||
"id": "c7a8abff",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"name": "stderr",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"\u001b[92m20:01:34 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m"
|
||
]
|
||
},
|
||
{
|
||
"name": "stdout",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"\n",
|
||
"\n",
|
||
"Extracted chunks are:\n",
|
||
"\n",
|
||
"{'id': '23da506e-af9a-5ba1-96c9-4c58d5ef9f4a', 'created_at': 1750269691781, 'updated_at': 1750269691781, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': '\\nCV 3: Relevant\\nName: Sarah Nguyen\\nContact Information:\\n\\nEmail: sarah.nguyen@example.com\\nPhone: (555) 345-6789\\nSummary:\\n\\nData Scientist specializing in machine learning with 6 years of experience. Passionate about leveraging data to drive business solutions and improve product performance.\\n\\nEducation:\\n\\nM.S. in Statistics, University of Washington (2014)\\nB.S. in Applied Mathematics, University of Texas at Austin (2012)\\nExperience:\\n\\nData Scientist, QuantumTech (2016 – Present)\\nDesigned and implemented machine learning algorithms for financial forecasting.\\nImproved model efficiency by 20% through algorithm optimization.\\nJunior Data Scientist, DataCore Solutions (2014 – 2016)\\nAssisted in developing predictive models for supply chain optimization.\\nConducted data cleaning and preprocessing on large datasets.\\nSkills:\\n\\nProgramming Languages: Python, R\\nMachine Learning Frameworks: PyTorch, Scikit-Learn\\nStatistical Analysis: SAS, SPSS\\nCloud Platforms: AWS, Azure\\n'}\n",
|
||
"\n",
|
||
"{'id': '34b218a9-d931-5d67-88fe-21b6723d3c5c', 'created_at': 1750269691781, 'updated_at': 1750269691781, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': \"\\nCV 5: Not Relevant\\nName: Jessica Miller\\nContact Information:\\n\\nEmail: jessica.miller@example.com\\nPhone: (555) 567-8901\\nSummary:\\n\\nExperienced Sales Manager with a strong track record in driving sales growth and building high-performing teams. Excellent communication and leadership skills.\\n\\nEducation:\\n\\nB.A. in Business Administration, University of Southern California (2010)\\nExperience:\\n\\nSales Manager, Global Enterprises (2015 – Present)\\nManaged a sales team of 15 members, achieving a 20% increase in annual revenue.\\nDeveloped sales strategies that expanded customer base by 25%.\\nSales Representative, Market Leaders Inc. (2010 – 2015)\\nConsistently exceeded sales targets and received the 'Top Salesperson' award in 2013.\\nSkills:\\n\\nSales Strategy and Planning\\nTeam Leadership and Development\\nCRM Software: Salesforce, Zoho\\nNegotiation and Relationship Building\\n\"}\n",
|
||
"\n",
|
||
"{'id': '8fb6cafa-0ba1-57d1-b53f-5e590f914bfa', 'created_at': 1750269691781, 'updated_at': 1750269691781, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': '\\nCV 4: Not Relevant\\nName: David Thompson\\nContact Information:\\n\\nEmail: david.thompson@example.com\\nPhone: (555) 456-7890\\nSummary:\\n\\nCreative Graphic Designer with over 8 years of experience in visual design and branding. Proficient in Adobe Creative Suite and passionate about creating compelling visuals.\\n\\nEducation:\\n\\nB.F.A. in Graphic Design, Rhode Island School of Design (2012)\\nExperience:\\n\\nSenior Graphic Designer, CreativeWorks Agency (2015 – Present)\\nLed design projects for clients in various industries.\\nCreated branding materials that increased client engagement by 30%.\\nGraphic Designer, Visual Innovations (2012 – 2015)\\nDesigned marketing collateral, including brochures, logos, and websites.\\nCollaborated with the marketing team to develop cohesive brand strategies.\\nSkills:\\n\\nDesign Software: Adobe Photoshop, Illustrator, InDesign\\nWeb Design: HTML, CSS\\nSpecialties: Branding and Identity, Typography\\n'}\n",
|
||
"\n",
|
||
"{'id': '16510b03-cc2b-5779-9050-4dc8f4d5df09', 'created_at': 1750269691781, 'updated_at': 1750269691781, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': '\\nCV 1: Relevant\\nName: Dr. Emily Carter\\nContact Information:\\n\\nEmail: emily.carter@example.com\\nPhone: (555) 123-4567\\nSummary:\\n\\nSenior Data Scientist with over 8 years of experience in machine learning and predictive analytics. Expertise in developing advanced algorithms and deploying scalable models in production environments.\\n\\nEducation:\\n\\nPh.D. in Computer Science, Stanford University (2014)\\nB.S. in Mathematics, University of California, Berkeley (2010)\\nExperience:\\n\\nSenior Data Scientist, InnovateAI Labs (2016 – Present)\\nLed a team in developing machine learning models for natural language processing applications.\\nImplemented deep learning algorithms that improved prediction accuracy by 25%.\\nCollaborated with cross-functional teams to integrate models into cloud-based platforms.\\nData Scientist, DataWave Analytics (2014 – 2016)\\nDeveloped predictive models for customer segmentation and churn analysis.\\nAnalyzed large datasets using Hadoop and Spark frameworks.\\nSkills:\\n\\nProgramming Languages: Python, R, SQL\\nMachine Learning: TensorFlow, Keras, Scikit-Learn\\nBig Data Technologies: Hadoop, Spark\\nData Visualization: Tableau, Matplotlib\\n'}\n",
|
||
"\n",
|
||
"{'id': 'ceb4ea98-3d56-52d2-8da8-92c6cf814255', 'created_at': 1750269691781, 'updated_at': 1750269691781, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': '\\nCV 2: Relevant\\nName: Michael Rodriguez\\nContact Information:\\n\\nEmail: michael.rodriguez@example.com\\nPhone: (555) 234-5678\\nSummary:\\n\\nData Scientist with a strong background in machine learning and statistical modeling. Skilled in handling large datasets and translating data into actionable business insights.\\n\\nEducation:\\n\\nM.S. in Data Science, Carnegie Mellon University (2013)\\nB.S. in Computer Science, University of Michigan (2011)\\nExperience:\\n\\nSenior Data Scientist, Alpha Analytics (2017 – Present)\\nDeveloped machine learning models to optimize marketing strategies.\\nReduced customer acquisition cost by 15% through predictive modeling.\\nData Scientist, TechInsights (2013 – 2017)\\nAnalyzed user behavior data to improve product features.\\nImplemented A/B testing frameworks to evaluate product changes.\\nSkills:\\n\\nProgramming Languages: Python, Java, SQL\\nMachine Learning: Scikit-Learn, XGBoost\\nData Visualization: Seaborn, Plotly\\nDatabases: MySQL, MongoDB\\n'}\n",
|
||
"\n",
|
||
"{'id': 'd1c4a9fc-ea1b-55f5-91ba-7105b0918986', 'created_at': 1750269691781, 'updated_at': 1750269691781, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'type': 'IndexSchema', 'text': 'Senior Data Scientist (Machine Learning)\\n\\nCompany: TechNova Solutions\\nLocation: San Francisco, CA\\n\\nJob Description:\\n\\nTechNova Solutions is seeking a Senior Data Scientist specializing in Machine Learning to join our dynamic analytics team. The ideal candidate will have a strong background in developing and deploying machine learning models, working with large datasets, and translating complex data into actionable insights.\\n\\nResponsibilities:\\n\\nDevelop and implement advanced machine learning algorithms and models.\\nAnalyze large, complex datasets to extract meaningful patterns and insights.\\nCollaborate with cross-functional teams to integrate predictive models into products.\\nStay updated with the latest advancements in machine learning and data science.\\nMentor junior data scientists and provide technical guidance.\\nQualifications:\\n\\nMaster’s or Ph.D. in Data Science, Computer Science, Statistics, or a related field.\\n5+ years of experience in data science and machine learning.\\nProficient in Python, R, and SQL.\\nExperience with deep learning frameworks (e.g., TensorFlow, PyTorch).\\nStrong problem-solving skills and attention to detail.\\nCandidate CVs\\n'}\n",
|
||
"\n"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"search_results = await cognee.search(query_type=SearchType.CHUNKS, query_text=node_name)\n",
|
||
"print(\"\\n\\nExtracted chunks are:\\n\")\n",
|
||
"for result in search_results:\n",
|
||
" print(f\"{result}\\n\")"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "47f0112f",
|
||
"metadata": {},
|
||
"source": [
|
||
" In this example we'll use cognee search to give us insights from the knowledge graph related to the node most related to \"sarah.nguyen@example.com\""
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 19,
|
||
"id": "706a3954",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"name": "stderr",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"\u001b[92m20:01:34 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m\u001b[92m20:01:34 - LiteLLM:INFO\u001b[0m: cost_calculator.py:655 - selected model name for cost calculation: azure/text-embedding-3-large\n",
|
||
"\u001b[1mselected model name for cost calculation: azure/text-embedding-3-large\u001b[0m"
|
||
]
|
||
},
|
||
{
|
||
"name": "stdout",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"\n",
|
||
"\n",
|
||
"Extracted sentences are:\n",
|
||
"\n",
|
||
"({'id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'name': 'sarah nguyen', 'type': 'Entity', 'created_at': 1750269680000, 'updated_at': 1750269680000, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'Data Scientist specializing in machine learning with 6 years of experience.'}, {'relationship_name': 'is_a', 'source_node_id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'target_node_id': 'd072ba0f-e1a9-58bf-9974-e1802adc8134', 'updated_at': '2025-06-18 18:01:31'}, {'id': 'd072ba0f-e1a9-58bf-9974-e1802adc8134', 'name': 'person', 'type': 'EntityType', 'created_at': 1750269679985, 'updated_at': 1750269679985, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'person'})\n",
|
||
"\n",
|
||
"({'id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'name': 'sarah nguyen', 'type': 'Entity', 'created_at': 1750269680000, 'updated_at': 1750269680000, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'Data Scientist specializing in machine learning with 6 years of experience.'}, {'relationship_name': 'contains', 'source_node_id': '23da506e-af9a-5ba1-96c9-4c58d5ef9f4a', 'target_node_id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'updated_at': '2025-06-18 18:01:31'}, {'id': '23da506e-af9a-5ba1-96c9-4c58d5ef9f4a', 'name': '', 'type': 'DocumentChunk', 'created_at': 1750269619882, 'updated_at': 1750269619882, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['text']}, 'belongs_to_set': None, 'text': '\\nCV 3: Relevant\\nName: Sarah Nguyen\\nContact Information:\\n\\nEmail: sarah.nguyen@example.com\\nPhone: (555) 345-6789\\nSummary:\\n\\nData Scientist specializing in machine learning with 6 years of experience. Passionate about leveraging data to drive business solutions and improve product performance.\\n\\nEducation:\\n\\nM.S. in Statistics, University of Washington (2014)\\nB.S. in Applied Mathematics, University of Texas at Austin (2012)\\nExperience:\\n\\nData Scientist, QuantumTech (2016 – Present)\\nDesigned and implemented machine learning algorithms for financial forecasting.\\nImproved model efficiency by 20% through algorithm optimization.\\nJunior Data Scientist, DataCore Solutions (2014 – 2016)\\nAssisted in developing predictive models for supply chain optimization.\\nConducted data cleaning and preprocessing on large datasets.\\nSkills:\\n\\nProgramming Languages: Python, R\\nMachine Learning Frameworks: PyTorch, Scikit-Learn\\nStatistical Analysis: SAS, SPSS\\nCloud Platforms: AWS, Azure\\n', 'chunk_size': 329, 'chunk_index': 0, 'cut_type': 'sentence_cut'})\n",
|
||
"\n",
|
||
"({'id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'name': 'sarah nguyen', 'type': 'Entity', 'created_at': 1750269680000, 'updated_at': 1750269680000, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'Data Scientist specializing in machine learning with 6 years of experience.'}, {'relationship_name': 'holds_degree', 'source_node_id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'target_node_id': '5abf79a8-2cdc-56a9-b78a-fd8150e9e891', 'ontology_valid': False}, {'id': '5abf79a8-2cdc-56a9-b78a-fd8150e9e891', 'name': 'b.s. in applied mathematics', 'type': 'Entity', 'created_at': 1750269680002, 'updated_at': 1750269680002, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': \"Bachelor's degree completed by Sarah Nguyen at University of Texas at Austin.\"})\n",
|
||
"\n",
|
||
"({'id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'name': 'sarah nguyen', 'type': 'Entity', 'created_at': 1750269680000, 'updated_at': 1750269680000, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'Data Scientist specializing in machine learning with 6 years of experience.'}, {'relationship_name': 'works_at', 'source_node_id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'target_node_id': '0d980f2a-09dd-581e-acc3-cc2d87c1bab4', 'ontology_valid': False}, {'id': '0d980f2a-09dd-581e-acc3-cc2d87c1bab4', 'name': 'quantumtech', 'type': 'Entity', 'created_at': 1750269680001, 'updated_at': 1750269680001, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'Company where Sarah Nguyen works as a Data Scientist.'})\n",
|
||
"\n",
|
||
"({'id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'name': 'sarah nguyen', 'type': 'Entity', 'created_at': 1750269680000, 'updated_at': 1750269680000, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'Data Scientist specializing in machine learning with 6 years of experience.'}, {'relationship_name': 'holds_degree', 'source_node_id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'target_node_id': 'd82673ff-ff5e-5436-bc8b-2967d4301b4f', 'ontology_valid': False}, {'id': 'd82673ff-ff5e-5436-bc8b-2967d4301b4f', 'name': 'm.s. in statistics', 'type': 'Entity', 'created_at': 1750269680002, 'updated_at': 1750269680002, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': \"Master's degree completed by Sarah Nguyen at University of Washington.\"})\n",
|
||
"\n",
|
||
"({'id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'name': 'sarah nguyen', 'type': 'Entity', 'created_at': 1750269680000, 'updated_at': 1750269680000, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'Data Scientist specializing in machine learning with 6 years of experience.'}, {'relationship_name': 'worked_at', 'source_node_id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'target_node_id': '95ac0551-38fc-5187-a422-533aeb7e8db0', 'ontology_valid': False}, {'id': '95ac0551-38fc-5187-a422-533aeb7e8db0', 'name': 'datacore solutions', 'type': 'Entity', 'created_at': 1750269680002, 'updated_at': 1750269680002, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'Company where Sarah Nguyen worked as a Junior Data Scientist.'})\n",
|
||
"\n",
|
||
"({'id': 'd072ba0f-e1a9-58bf-9974-e1802adc8134', 'name': 'person', 'type': 'EntityType', 'created_at': 1750269679985, 'updated_at': 1750269679985, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'person'}, {'relationship_name': 'is_a', 'source_node_id': 'a4777597-06c7-562c-bc44-56f74571a01a', 'target_node_id': 'd072ba0f-e1a9-58bf-9974-e1802adc8134', 'updated_at': '2025-06-18 18:01:31'}, {'id': 'a4777597-06c7-562c-bc44-56f74571a01a', 'name': 'david thompson', 'type': 'Entity', 'created_at': 1750269679986, 'updated_at': 1750269679986, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'Creative Graphic Designer with over 8 years of experience in visual design and branding.'})\n",
|
||
"\n",
|
||
"({'id': 'd072ba0f-e1a9-58bf-9974-e1802adc8134', 'name': 'person', 'type': 'EntityType', 'created_at': 1750269679985, 'updated_at': 1750269679985, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'person'}, {'relationship_name': 'is_a', 'source_node_id': '29e771c8-4c3f-52de-9511-6b705878e130', 'target_node_id': 'd072ba0f-e1a9-58bf-9974-e1802adc8134', 'updated_at': '2025-06-18 18:01:31'}, {'id': '29e771c8-4c3f-52de-9511-6b705878e130', 'name': 'dr. emily carter', 'type': 'Entity', 'created_at': 1750269679989, 'updated_at': 1750269679989, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'Senior Data Scientist with over 8 years of experience in machine learning and predictive analytics.'})\n",
|
||
"\n",
|
||
"({'id': 'd072ba0f-e1a9-58bf-9974-e1802adc8134', 'name': 'person', 'type': 'EntityType', 'created_at': 1750269679985, 'updated_at': 1750269679985, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'person'}, {'relationship_name': 'is_a', 'source_node_id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'target_node_id': 'd072ba0f-e1a9-58bf-9974-e1802adc8134', 'updated_at': '2025-06-18 18:01:31'}, {'id': '4d8dda57-2681-5264-a2bd-e2ddfe66a785', 'name': 'sarah nguyen', 'type': 'Entity', 'created_at': 1750269680000, 'updated_at': 1750269680000, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'Data Scientist specializing in machine learning with 6 years of experience.'})\n",
|
||
"\n",
|
||
"({'id': 'd072ba0f-e1a9-58bf-9974-e1802adc8134', 'name': 'person', 'type': 'EntityType', 'created_at': 1750269679985, 'updated_at': 1750269679985, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'person'}, {'relationship_name': 'is_a', 'source_node_id': '36a5e3c8-c5f5-5ab5-8d59-ea69d8b36932', 'target_node_id': 'd072ba0f-e1a9-58bf-9974-e1802adc8134', 'updated_at': '2025-06-18 18:01:31'}, {'id': '36a5e3c8-c5f5-5ab5-8d59-ea69d8b36932', 'name': 'jessica miller', 'type': 'Entity', 'created_at': 1750269680003, 'updated_at': 1750269680003, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'Experienced Sales Manager with a strong track record in driving sales growth and building high-performing teams.'})\n",
|
||
"\n",
|
||
"({'id': 'd072ba0f-e1a9-58bf-9974-e1802adc8134', 'name': 'person', 'type': 'EntityType', 'created_at': 1750269679985, 'updated_at': 1750269679985, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'person'}, {'relationship_name': 'is_a', 'source_node_id': '73ae630f-7b09-5dce-8c18-45d0a57b30f9', 'target_node_id': 'd072ba0f-e1a9-58bf-9974-e1802adc8134', 'updated_at': '2025-06-18 18:01:31'}, {'id': '73ae630f-7b09-5dce-8c18-45d0a57b30f9', 'name': 'michael rodriguez', 'type': 'Entity', 'created_at': 1750269680006, 'updated_at': 1750269680006, 'ontology_valid': False, 'version': 1, 'topological_rank': 0, 'metadata': {'index_fields': ['name']}, 'belongs_to_set': None, 'description': 'Data Scientist with expertise in machine learning and statistical modeling.'})\n",
|
||
"\n"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"search_results = await cognee.search(query_type=SearchType.INSIGHTS, query_text=node_name)\n",
|
||
"print(\"\\n\\nExtracted sentences are:\\n\")\n",
|
||
"for result in search_results:\n",
|
||
" print(f\"{result}\\n\")"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"id": "288ab570",
|
||
"metadata": {},
|
||
"source": [
|
||
"### Give us a star if you like it!\n",
|
||
"https://github.com/topoteretes/cognee"
|
||
]
|
||
}
|
||
],
|
||
"metadata": {
|
||
"kernelspec": {
|
||
"display_name": ".venv",
|
||
"language": "python",
|
||
"name": "python3"
|
||
},
|
||
"language_info": {
|
||
"codemirror_mode": {
|
||
"name": "ipython",
|
||
"version": 3
|
||
},
|
||
"file_extension": ".py",
|
||
"mimetype": "text/x-python",
|
||
"name": "python",
|
||
"nbconvert_exporter": "python",
|
||
"pygments_lexer": "ipython3",
|
||
"version": "3.11.5"
|
||
}
|
||
},
|
||
"nbformat": 4,
|
||
"nbformat_minor": 5
|
||
}
|