Skip to content

Commit

Permalink
Merge pull request #1163 from IsuruMaduranga/langchain4j
Browse files Browse the repository at this point in the history
Add langchain4j-pinecone alpha1
  • Loading branch information
GDLMadushanka authored Feb 5, 2025
2 parents ae72db9 + 1b01fb4 commit 404988f
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.wso2.shaded.grpc.internal.PickFirstLoadBalancerProvider
org.wso2.shaded.grpc.util.SecretRoundRobinLoadBalancerProvider$Provider
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.wso2.shaded.grpc.netty.shaded.io.grpc.netty.NettyChannelProvider
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.wso2.shaded.grpc.internal.DnsNameResolverProvider
98 changes: 98 additions & 0 deletions langchain4j-pinecone/1.0.0-alpha1.wso2v1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2025, WSO2 LLC. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 LLC. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
~ in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>dev.langchain4j.wso2</groupId>
<artifactId>langchain4j-pinecone</artifactId>
<version>1.0.0-alpha1.wso2v1</version>
<packaging>jar</packaging>

<!-- Define dependency versions as properties -->
<properties>
<langchain4j-pinecone.version>1.0.0-alpha1</langchain4j-pinecone.version>
<pinecone-client.version>1.2.2</pinecone-client.version>
<slf4j-nop.version>1.7.36</slf4j-nop.version>
<maven-shade-plugin.version>3.4.1</maven-shade-plugin.version>
</properties>

<dependencies>
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-pinecone</artifactId>
<version>${langchain4j-pinecone.version}</version>
</dependency>
<dependency>
<groupId>io.pinecone</groupId>
<artifactId>pinecone-client</artifactId>
<version>${pinecone-client.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>${slf4j-nop.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<!-- Maven Shade Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<shadedArtifactAttached>false</shadedArtifactAttached>
<outputFile>${project.build.directory}/${project.build.finalName}.jar</outputFile>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<transformers>
<!-- Merge service files -->
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
<relocations>
<relocation>
<pattern>io.grpc</pattern>
<shadedPattern>org.wso2.shaded.grpc</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 404988f

Please sign in to comment.