We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a122ba1 commit c2b2e8cCopy full SHA for c2b2e8c
pinecone-core/src/main/scala/io/cequence/pineconescala/domain/response/QueryResponse.scala
@@ -12,7 +12,10 @@ case class QueryResponse(
12
case class Match(
13
id: String,
14
score: Double,
15
- values: Seq[Double], // not returned when includeValues = false
+ values: Seq[Double], // not returned when includeValues = false
16
sparseValues: Option[SparseVector],
17
- metadata: Option[Map[String, String]] // not returned when includeMetadata = true
18
-)
+ metadata: Option[Map[String, String]] // not returned when includeMetadata = false
+) {
19
+ val metadataUnwrapped : Map[String, String] = metadata.getOrElse(Map[String, String]())
20
+ def getMetadata(key: String): Option[String] = metadataUnwrapped.get(key)
21
+}
0 commit comments