You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Neo4j vector index method support
This commit introduces support for specifying vector index methods (HNSW)
for Neo4j targets.
- Modified `src/base/spec.rs` to derive `Eq` for `VectorIndexMethod`.
- Modified `src/ops/targets/neo4j.rs` to:
- Allow `VectorIndexMethod` to be passed to `IndexDef::from_vector_index_def`.
- Store `VectorIndexMethod` in `IndexDef::VectorIndex`.
- Implement error handling for unsupported `VectorIndexMethod` (IVFFlat).
- Update `SetupComponentOperator::describe_state` to display the method.
- Update `SetupComponentOperator::create` to include HNSW parameters in the Cypher query.
* feat: integrate Ollama for LLM tasks to enable on-premises testing
- Updated docs_to_knowledge_graph example to use Ollama instead of OpenAI
- Added alternative configuration comments for OpenAI usage
- Enables end-to-end testing without requiring OpenAI API key
- Supports the Neo4j vector index method implementation
* Simplify Neo4j vector index
* Fix: Refactor LLM usage and update Neo4j vector index
This commit addresses feedback on the docs-to-knowledge-graph example and Neo4j vector index implementation.
- Refactors the docs-to-knowledge-graph example to use Ollama by default, removing the explicit address parameter.
- Updates the corresponding README to reflect the change to Ollama.
- Removes the unused `_method` parameter from the `from_vector_index_def` function in the Neo4j target.
Copy file name to clipboardExpand all lines: examples/docs_to_knowledge_graph/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Please drop [Cocoindex on Github](https://github.com/cocoindex-io/cocoindex) a s
16
16
*[Install Postgres](https://cocoindex.io/docs/getting_started/installation#-install-postgres) if you don't have one.
17
17
* Install [Neo4j](https://cocoindex.io/docs/ops/targets#neo4j-dev-instance) or [Kuzu](https://cocoindex.io/docs/ops/targets#kuzu-dev-instance) if you don't have one.
18
18
* The example uses Neo4j by default for now. If you want to use Kuzu, find out the "SELECT ONE GRAPH DATABASE TO USE" section and switch the active branch.
19
-
*[Configure your OpenAIAPI key](https://cocoindex.io/docs/ai/llm#openai).
19
+
*Install / configure LLM API. In this example we use Ollama, which runs LLM model locally. You need to get it ready following [this guide](https://cocoindex.io/docs/ai/llm#ollama). Alternatively, you can also follow the comments in source code to switch to OpenAI, and [configure OpenAI API key](https://cocoindex.io/docs/ai/llm#openai) before running the example.
20
20
21
21
## Documentation
22
22
You can read the official CocoIndex Documentation for Property Graph Targets [here](https://cocoindex.io/docs/ops/targets#property-graph-targets).
0 commit comments