Skip to content

Commit c2933b2

Browse files
committed
Version 0.1.2
1 parent 53de9dc commit c2933b2

File tree

4 files changed

+22
-15
lines changed

4 files changed

+22
-15
lines changed

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Pinecone Scala Client 🗂️
2-
[![version](https://img.shields.io/badge/version-0.1.1-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT) ![GitHub Stars](https://img.shields.io/github/stars/cequence-io/pinecone-scala?style=social) [![Twitter Follow](https://img.shields.io/twitter/follow/0xbnd?style=social)](https://twitter.com/0xbnd)
2+
[![version](https://img.shields.io/badge/version-0.1.2-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT) ![GitHub Stars](https://img.shields.io/github/stars/cequence-io/pinecone-scala?style=social) [![Twitter Follow](https://img.shields.io/twitter/follow/0xbnd?style=social)](https://twitter.com/0xbnd)
33

44
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:
55

@@ -21,7 +21,7 @@ The currently supported Scala versions are **2.12, 2.13**, and **3**.
2121
To pull the library you have to add the following dependency to your *build.sbt*
2222

2323
```
24-
"io.cequence" %% "pinecone-scala-client" % "0.1.1"
24+
"io.cequence" %% "pinecone-scala-client" % "0.1.2"
2525
```
2626

2727
or to *pom.xml* (if you use maven)
@@ -30,13 +30,13 @@ or to *pom.xml* (if you use maven)
3030
<dependency>
3131
<groupId>io.cequence</groupId>
3232
<artifactId>pinecone-scala-client_2.12</artifactId>
33-
<version>0.1.1</version>
33+
<version>0.1.2</version>
3434
</dependency>
3535
```
3636

3737
## Config ⚙️
3838

39-
- Env. variables: `PINECONE_SCALA_CLIENT_API_KEY`, and `PINECONE_SCALA_CLIENT_ENV`
39+
- Env. variables: `PINECONE_SCALA_CLIENT_API_KEY`, and `PINECONE_SCALA_CLIENT_ENV` if pod-based service is used
4040
- File config (default): [pinecone-scala-client.conf](./pinecone-client/src/main/resources/pinecone-scala-client.conf)
4141

4242
## Usage 👨‍🎓
@@ -50,7 +50,7 @@ First you need to provide an implicit execution context as well as akka material
5050
implicit val materializer = Materializer(ActorSystem())
5151
```
5252

53-
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.
5454

5555
- Default config (expects env. variable(s) to be set as defined in `Config` section)
5656

@@ -64,11 +64,18 @@ Then you can obtain a service in one of the following ways.
6464
val service = PineconeIndexServiceFactory(config)
6565
```
6666

67-
- Without config
67+
- Without config for pod-based service (with env)
6868
```scala
6969
val service = PineconeIndexServiceFactory(
7070
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+
val service = PineconeIndexServiceFactory(
78+
apiKey = "your_api_key"
7279
)
7380
```
7481

@@ -390,7 +397,7 @@ pinecone-scala-client {
390397
}
391398
```
392399

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?_
394401

395402
Set the env. variable `PINECONE_SCALA_CLIENT_API_KEY`. If you don't have one register [here](https://app.pinecone.io/?sessionType=signup).
396403

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ val scala33 = "3.3.1"
88

99
ThisBuild / organization := "io.cequence"
1010
ThisBuild / scalaVersion := scala212
11-
ThisBuild / version := "0.1.1"
11+
ThisBuild / version := "0.1.2"
1212
ThisBuild / isSnapshot := false
1313

1414
lazy val core = (project in file("pinecone-core"))

pinecone-client/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Pinecone Scala - Client [![version](https://img.shields.io/badge/version-0.1.1-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
1+
# Pinecone Scala - Client [![version](https://img.shields.io/badge/version-0.1.2-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
22

33
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)).
44
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**.
1010
To pull the library you have to add the following dependency to your *build.sbt*
1111

1212
```
13-
"io.cequence" %% "pinecone-scala-client" % "0.1.1"
13+
"io.cequence" %% "pinecone-scala-client" % "0.1.2"
1414
```
1515

1616
or to *pom.xml* (if you use maven)
@@ -19,6 +19,6 @@ or to *pom.xml* (if you use maven)
1919
<dependency>
2020
<groupId>io.cequence</groupId>
2121
<artifactId>pinecone-scala-client_2.12</artifactId>
22-
<version>0.1.1</version>
22+
<version>0.1.2</version>
2323
</dependency>
2424
```

pinecone-core/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Pinecone Scala - Core [![version](https://img.shields.io/badge/version-0.1.1-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
1+
# Pinecone Scala - Core [![version](https://img.shields.io/badge/version-0.1.2-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
22

33
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).
44
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**.
1010
To pull the library you have to add the following dependency to your *build.sbt*
1111

1212
```
13-
"io.cequence" %% "pinecone-scala-core" % "0.1.1"
13+
"io.cequence" %% "pinecone-scala-core" % "0.1.2"
1414
```
1515

1616
or to *pom.xml* (if you use maven)
@@ -19,6 +19,6 @@ or to *pom.xml* (if you use maven)
1919
<dependency>
2020
<groupId>io.cequence</groupId>
2121
<artifactId>pinecone-scala-core_2.12</artifactId>
22-
<version>0.1.1</version>
22+
<version>0.1.2</version>
2323
</dependency>
2424
```

0 commit comments

Comments
 (0)