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
This is an intuitive async Scala client for Pinecone API supporting all the available vector and index/collection operations/endpoints, provided in two convenient services called [PineconeVectorService](./pinecone-core/src/main/scala/io/cequence/pineconescala/service/PineconeVectorService.scala) and [PineconeIndexService](./pinecone-core/src/main/scala/io/cequence/pineconescala/service/PineconeIndexService.scala). The supported calls are:
5
5
@@ -21,7 +21,7 @@ The currently supported Scala versions are **2.12, 2.13**, and **3**.
21
21
To pull the library you have to add the following dependency to your *build.sbt*
Then you can obtain a service in one of the following ways.
53
+
Then you can obtain a service (pod or serverless-based) in one of the following ways.
54
54
55
55
- Default config (expects env. variable(s) to be set as defined in `Config` section)
56
56
@@ -64,11 +64,18 @@ Then you can obtain a service in one of the following ways.
64
64
valservice=PineconeIndexServiceFactory(config)
65
65
```
66
66
67
-
- Without config
67
+
- Without config for pod-based service (with env)
68
68
```scala
69
69
valservice=PineconeIndexServiceFactory(
70
70
apiKey ="your_api_key",
71
-
environment ="your_env"// e.g. "northamerica-northeast1-gcp
71
+
environment =Some("your_env") // e.g. "northamerica-northeast1-gcp
72
+
)
73
+
```
74
+
75
+
- Without config for serverless service
76
+
```scala
77
+
valservice=PineconeIndexServiceFactory(
78
+
apiKey ="your_api_key"
72
79
)
73
80
```
74
81
@@ -390,7 +397,7 @@ pinecone-scala-client {
390
397
}
391
398
```
392
399
393
-
2._I got an exception like `com.typesafe.config.ConfigException$UnresolvedSubstitution: pinecone-scala-client.conf @ jar:file:.../io/cequence/pinecone-scala-client_2.13/0.1.1/pinecone-scala-client_2.13-0.1.1.jar!/pinecone-scala-client.conf: 4: Could not resolve substitution to a value: ${PINECONE_SCALA_CLIENT_API_KEY}`. What should I do?_
400
+
2._I got an exception like `com.typesafe.config.ConfigException$UnresolvedSubstitution: pinecone-scala-client.conf @ jar:file:.../io/cequence/pinecone-scala-client_2.13/0.1.2/pinecone-scala-client_2.13-0.1.2.jar!/pinecone-scala-client.conf: 4: Could not resolve substitution to a value: ${PINECONE_SCALA_CLIENT_API_KEY}`. What should I do?_
394
401
395
402
Set the env. variable `PINECONE_SCALA_CLIENT_API_KEY`. If you don't have one register [here](https://app.pinecone.io/?sessionType=signup).
This module provides the actual meat, i.e. WS client implementation ([PineconeVectorService impl and factory](./src/main/scala/io/cequence/pineconescala/service/PineconeVectorServiceImpl.scala) and [PineconeIndexService impl and factory](./src/main/scala/io/cequence/pineconescala/service/PineconeIndexServiceImpl.scala)).
4
4
Note that the full project documentation can be found [here](../README.md).
@@ -10,7 +10,7 @@ The currently supported Scala versions are **2.12, 2.13**, and **3**.
10
10
To pull the library you have to add the following dependency to your *build.sbt*
This is the core module, which contains mostly domain classes and the definition of services: [PineconeVectorService](./src/main/scala/io/cequence/pineconescala/service/PineconeVectorService.scala) and [PineconeIndexService](./src/main/scala/io/cequence/pineconescala/service/PineconeIndexService.scala).
4
4
Note that the full project documentation can be found [here](../README.md).
@@ -10,7 +10,7 @@ The currently supported Scala versions are **2.12, 2.13**, and **3**.
10
10
To pull the library you have to add the following dependency to your *build.sbt*
11
11
12
12
```
13
-
"io.cequence" %% "pinecone-scala-core" % "0.1.1"
13
+
"io.cequence" %% "pinecone-scala-core" % "0.1.2"
14
14
```
15
15
16
16
or to *pom.xml* (if you use maven)
@@ -19,6 +19,6 @@ or to *pom.xml* (if you use maven)
0 commit comments