Replies: 1 comment 5 replies
-
@lerzegov thank you for reporting this issue, I will check it in more details in the evening. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been testing the DocumentQnAExamples.IfYouNeedMoreControl example, using this revised code with some debugging; the pdf file path is hardcoded
I get the following log
pdf loaded
pdf split
created embeddings
mag 23, 2023 9:16:55 AM io.grpc.internal.ManagedChannelOrphanWrapper$ManagedChannelReference cleanQueue
GRAVE: ~
*Previous channel ManagedChannelImpl{logId=14, target=langchain-retrieval-augmentation-82bbcd4.svc.us-west4-gcp-free.pinecone.io} was not shutdown properly!!!*~Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.
java.lang.RuntimeException: ManagedChannel allocation site
at io.grpc.internal.ManagedChannelOrphanWrapper$ManagedChannelReference.(ManagedChannelOrphanWrapper.java:100)
at io.grpc.internal.ManagedChannelOrphanWrapper.(ManagedChannelOrphanWrapper.java:60)
at io.grpc.internal.ManagedChannelOrphanWrapper.(ManagedChannelOrphanWrapper.java:51)
at io.grpc.internal.ManagedChannelImplBuilder.build(ManagedChannelImplBuilder.java:631)
at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:297)
at io.pinecone.PineconeConnection.buildChannel(PineconeConnection.java:99)
at io.pinecone.PineconeConnection.(PineconeConnection.java:44)
at io.pinecone.PineconeClient.connect(PineconeClient.java:37)
at dev.ai4j.model.embedding.PineconeDatabase.(PineconeDatabase.java:47)
at dev.ai4j.model.embedding.PineconeDatabase$PineconeDatabaseBuilder.build(PineconeDatabase.java:34)
at dev.ai4j.model.embedding.PineconeDatabase$PineconeDatabaseBuilder$build$3.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)
at DocumentQnAExamples$IfYouNeedMoreControl.main(script:100)
at DocumentQnAExamples$IfYouNeedMoreControl$main.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
at script.perform(script:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.quantrix.scripting.core.internal.ScriptedAction$4.perform(ScriptedAction.java:213)
at com.subx.general.core.internal.context.ThreadContext.performWithContext(ThreadContext.java:77)
at com.quantrix.scripting.core.internal.ScriptedAction.invokeScriptMethod(ScriptedAction.java:221)
at com.quantrix.scripting.core.internal.ScriptedAction.access$14(ScriptedAction.java:196)
at com.quantrix.scripting.core.internal.ScriptedAction$5.performWithException(ScriptedAction.java:279)
at com.quantrix.scripting.core.internal.ScriptedAction$5.performWithException(ScriptedAction.java:1)
at com.subx.general.core.api.operation.ExceptionThrowingOperation.perform(ExceptionThrowingOperation.java:47)
at com.subx.general.core.iapi.util.ThreadSpecificOutput.perform(ThreadSpecificOutput.java:43)
at com.quantrix.scripting.core.internal.ScriptManager.captureOutput(ScriptManager.java:685)
at com.quantrix.scripting.core.internal.ScriptedAction.lambda$2(ScriptedAction.java:290)
at com.quantrix.scripting.core.iapi.ScriptingProgressRunner.lambda$0(ScriptingProgressRunner.java:115)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Pinecone build
io.pinecone.PineconeConnection@5c4bf932
io.grpc.StatusRuntimeException: UNKNOWN
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:271)
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:252)
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:165)
at io.pinecone.proto.VectorServiceGrpc$VectorServiceBlockingStub.upsert(VectorServiceGrpc.java:505)
at dev.ai4j.model.embedding.PineconeDatabase.persist(PineconeDatabase.java:81)
at dev.ai4j.model.embedding.VectorDatabase$persist.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
at DocumentQnAExamples$IfYouNeedMoreControl.main(script:109)
at DocumentQnAExamples$IfYouNeedMoreControl$main.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
at script.perform(script:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.quantrix.scripting.core.internal.ScriptedAction$4.perform(ScriptedAction.java:213)
at com.subx.general.core.internal.context.ThreadContext.performWithContext(ThreadContext.java:77)
at com.quantrix.scripting.core.internal.ScriptedAction.invokeScriptMethod(ScriptedAction.java:221)
at com.quantrix.scripting.core.internal.ScriptedAction.access$14(ScriptedAction.java:196)
at com.quantrix.scripting.core.internal.ScriptedAction$5.performWithException(ScriptedAction.java:279)
at com.quantrix.scripting.core.internal.ScriptedAction$5.performWithException(ScriptedAction.java:1)
at com.subx.general.core.api.operation.ExceptionThrowingOperation.perform(ExceptionThrowingOperation.java:47)
at com.subx.general.core.iapi.util.ThreadSpecificOutput.perform(ThreadSpecificOutput.java:43)
at com.quantrix.scripting.core.internal.ScriptManager.captureOutput(ScriptManager.java:685)
at com.quantrix.scripting.core.internal.ScriptedAction.lambda$2(ScriptedAction.java:290)
at com.quantrix.scripting.core.iapi.ScriptingProgressRunner.lambda$0(ScriptingProgressRunner.java:115)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.nio.channels.UnsupportedAddressTypeException
at sun.nio.ch.Net.checkAddress(Net.java:101)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:621)
at io.netty.util.internal.SocketUtils$3.run(SocketUtils.java:91)
at io.netty.util.internal.SocketUtils$3.run(SocketUtils.java:88)
at java.security.AccessController.doPrivileged(Native Method)
at io.netty.util.internal.SocketUtils.connect(SocketUtils.java:88)
at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:322)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:248)
at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1342)
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:548)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:533)
at io.netty.channel.ChannelDuplexHandler.connect(ChannelDuplexHandler.java:54)
at io.grpc.netty.WriteBufferingAndExceptionHandler.connect(WriteBufferingAndExceptionHandler.java:157)
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:548)
at io.netty.channel.AbstractChannelHandlerContext.access$1000(AbstractChannelHandlerContext.java:61)
at io.netty.channel.AbstractChannelHandlerContext$9.run(AbstractChannelHandlerContext.java:538)
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:503)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
... 1 more
Is there something wrong in my configuration or am I missing something else?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions