From 5c92d804babf1e1ef852872dd3896eacd0755908 Mon Sep 17 00:00:00 2001 From: Linghua Jin Date: Tue, 15 Apr 2025 14:46:24 -0700 Subject: [PATCH 1/3] update cocoindex version for examples --- examples/code_embedding/pyproject.toml | 2 +- examples/docs_to_kg/pyproject.toml | 2 +- examples/gdrive_text_embedding/pyproject.toml | 2 +- examples/manuals_llm_extraction/pyproject.toml | 2 +- examples/pdf_embedding/pyproject.toml | 2 +- examples/text_embedding/pyproject.toml | 2 +- examples/text_embedding_qdrant/pyproject.toml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/code_embedding/pyproject.toml b/examples/code_embedding/pyproject.toml index 41b7d919..dc55508f 100644 --- a/examples/code_embedding/pyproject.toml +++ b/examples/code_embedding/pyproject.toml @@ -3,4 +3,4 @@ name = "code-embedding" version = "0.1.0" description = "Simple example for cocoindex: build embedding index based on source code." requires-python = ">=3.10" -dependencies = ["cocoindex>=0.1.19", "python-dotenv>=1.0.1"] +dependencies = ["cocoindex>=0.1.20", "python-dotenv>=1.0.1"] diff --git a/examples/docs_to_kg/pyproject.toml b/examples/docs_to_kg/pyproject.toml index fc2964af..2a52794d 100644 --- a/examples/docs_to_kg/pyproject.toml +++ b/examples/docs_to_kg/pyproject.toml @@ -3,4 +3,4 @@ name = "manuals-to-kg" version = "0.1.0" description = "Simple example for cocoindex: extract triples from files and build knowledge graph." requires-python = ">=3.10" -dependencies = ["cocoindex>=0.1.19", "python-dotenv>=1.0.1"] +dependencies = ["cocoindex>=0.1.20", "python-dotenv>=1.0.1"] diff --git a/examples/gdrive_text_embedding/pyproject.toml b/examples/gdrive_text_embedding/pyproject.toml index 964a2757..55835a9a 100644 --- a/examples/gdrive_text_embedding/pyproject.toml +++ b/examples/gdrive_text_embedding/pyproject.toml @@ -3,4 +3,4 @@ name = "gdrive-text-embedding" version = "0.1.0" description = "Simple example for cocoindex: build embedding index based on Google Drive files." requires-python = ">=3.11" -dependencies = ["cocoindex>=0.1.19", "python-dotenv>=1.0.1"] +dependencies = ["cocoindex>=0.1.20", "python-dotenv>=1.0.1"] diff --git a/examples/manuals_llm_extraction/pyproject.toml b/examples/manuals_llm_extraction/pyproject.toml index e098da92..7751126b 100644 --- a/examples/manuals_llm_extraction/pyproject.toml +++ b/examples/manuals_llm_extraction/pyproject.toml @@ -4,7 +4,7 @@ version = "0.1.0" description = "Simple example for cocoindex: extract structured information from a Markdown file using LLM." requires-python = ">=3.10" dependencies = [ - "cocoindex>=0.1.19", + "cocoindex>=0.1.20", "python-dotenv>=1.0.1", "marker-pdf>=1.5.2", ] diff --git a/examples/pdf_embedding/pyproject.toml b/examples/pdf_embedding/pyproject.toml index 93b03bcb..cd5ae878 100644 --- a/examples/pdf_embedding/pyproject.toml +++ b/examples/pdf_embedding/pyproject.toml @@ -4,7 +4,7 @@ version = "0.1.0" description = "Simple example for cocoindex: build embedding index based on local PDF files." requires-python = ">=3.10" dependencies = [ - "cocoindex>=0.1.19", + "cocoindex>=0.1.20", "python-dotenv>=1.0.1", "marker-pdf>=1.5.2", ] diff --git a/examples/text_embedding/pyproject.toml b/examples/text_embedding/pyproject.toml index 8546886d..95bff7bb 100644 --- a/examples/text_embedding/pyproject.toml +++ b/examples/text_embedding/pyproject.toml @@ -3,4 +3,4 @@ name = "text-embedding" version = "0.1.0" description = "Simple example for cocoindex: build embedding index based on local text files." requires-python = ">=3.10" -dependencies = ["cocoindex>=0.1.19", "python-dotenv>=1.0.1"] +dependencies = ["cocoindex>=0.1.20", "python-dotenv>=1.0.1"] diff --git a/examples/text_embedding_qdrant/pyproject.toml b/examples/text_embedding_qdrant/pyproject.toml index 1505d902..ec1b4c40 100644 --- a/examples/text_embedding_qdrant/pyproject.toml +++ b/examples/text_embedding_qdrant/pyproject.toml @@ -3,4 +3,4 @@ name = "text-embedding-qdrant" version = "0.1.0" description = "Simple example for cocoindex: build embedding index based on local text files." requires-python = ">=3.10" -dependencies = ["cocoindex>=0.1.19", "python-dotenv>=1.0.1"] +dependencies = ["cocoindex>=0.1.20", "python-dotenv>=1.0.1"] From e8d0c55fdd339736b97fe1a8879c1c3ebcfd8068 Mon Sep 17 00:00:00 2001 From: Linghua Jin Date: Tue, 15 Apr 2025 15:12:30 -0700 Subject: [PATCH 2/3] amend neo4j connection instruction in the local dev example --- examples/docs_to_kg/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/docs_to_kg/README.md b/examples/docs_to_kg/README.md index 577c759b..2b70a08f 100644 --- a/examples/docs_to_kg/README.md +++ b/examples/docs_to_kg/README.md @@ -40,6 +40,12 @@ python main.py cocoindex update ### Browse the knowledge graph After the knowledge graph is build, you can explore the knowledge graph you built in Neo4j Browser. + +For the dev enviroment, you can connect neo4j browser using credentials: +- username: neo4j +- password: cocoindex +which is pre-configured in the our docker compose [config.yaml](https://raw.githubusercontent.com/cocoindex-io/cocoindex/refs/heads/main/dev/neo4j.yaml). + You can open it at [http://localhost:7474](http://localhost:7474), and run the following Cypher query to get all relationships: ```cypher From 76242fc3def70ccd21f6d64d61e7a3348ad29441 Mon Sep 17 00:00:00 2001 From: Linghua Jin Date: Tue, 15 Apr 2025 15:55:23 -0700 Subject: [PATCH 3/3] Update README.md --- examples/docs_to_kg/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/docs_to_kg/README.md b/examples/docs_to_kg/README.md index 2b70a08f..b2b25798 100644 --- a/examples/docs_to_kg/README.md +++ b/examples/docs_to_kg/README.md @@ -42,8 +42,8 @@ python main.py cocoindex update After the knowledge graph is build, you can explore the knowledge graph you built in Neo4j Browser. For the dev enviroment, you can connect neo4j browser using credentials: -- username: neo4j -- password: cocoindex +- username: `neo4j` +- password: `cocoindex` which is pre-configured in the our docker compose [config.yaml](https://raw.githubusercontent.com/cocoindex-io/cocoindex/refs/heads/main/dev/neo4j.yaml). You can open it at [http://localhost:7474](http://localhost:7474), and run the following Cypher query to get all relationships: