forked from spring-projects/spring-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spring-projectsGH-26 - Add support for Neo4j vector index.
This commit brings support for Neo4j graph database in general, and uses the vector index functionality available since version 5.11. Aligned with the existing PgVector store and its tests. The module creates indexes, if needed, for the vector search and the identifier of the document object. Add neo4j to vectordb docs page Co-authored-by: Michael Simons <[email protected]>
- Loading branch information
1 parent
92773f1
commit a6fba7a
Showing
5 changed files
with
634 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.springframework.experimental.ai</groupId> | ||
<artifactId>spring-ai</artifactId> | ||
<version>0.2.0-SNAPSHOT</version> | ||
<relativePath>../../pom.xml</relativePath> | ||
</parent> | ||
<artifactId>spring-ai-neo4j-store</artifactId> | ||
<packaging>jar</packaging> | ||
<name>Spring AI Vector Store - neo4j</name> | ||
<description>Spring AI Neo4j Vector Store</description> | ||
<url>https://github.com/spring-projects-experimental/spring-ai</url> | ||
|
||
<scm> | ||
<url>https://github.com/spring-projects-experimental/spring-ai</url> | ||
<connection>git://github.com/spring-projects-experimental/spring-ai.git</connection> | ||
<developerConnection>[email protected]:spring-projects-experimental/spring-ai.git</developerConnection> | ||
</scm> | ||
|
||
<properties> | ||
<spring-ai.version>0.2.0-SNAPSHOT</spring-ai.version> | ||
<!-- testing --> | ||
<testcontainers.version>1.19.0</testcontainers.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.springframework.experimental.ai</groupId> | ||
<artifactId>spring-ai-core</artifactId> | ||
<version>${spring-ai.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.neo4j.driver</groupId> | ||
<artifactId>neo4j-java-driver</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.neo4j</groupId> | ||
<artifactId>neo4j-cypher-dsl-schema-name-support</artifactId> | ||
<version>2023.7.0</version> | ||
</dependency> | ||
|
||
<!-- TESTING --> | ||
<dependency> | ||
<groupId>org.springframework.experimental.ai</groupId> | ||
<artifactId>spring-ai-openai-spring-boot-starter</artifactId> | ||
<version>${spring-ai.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-test</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.testcontainers</groupId> | ||
<artifactId>neo4j</artifactId> | ||
<version>${testcontainers.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.testcontainers</groupId> | ||
<artifactId>junit-jupiter</artifactId> | ||
<version>${testcontainers.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
|
||
</dependencies> | ||
|
||
</project> |
Oops, something went wrong.