QdrantVectorStore

org.llm4s.vectorstore.QdrantVectorStore
See theQdrantVectorStore companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class Config(host: String, port: Int, collectionName: String, apiKey: Option[String], https: Boolean)

Configuration for QdrantVectorStore.

Configuration for QdrantVectorStore.

Value parameters

apiKey

Optional API key

collectionName

Collection name

host

Qdrant host

https

Use HTTPS (default: false for local)

port

Qdrant port (default: 6333)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

Create a QdrantVectorStore from configuration.

Create a QdrantVectorStore from configuration.

Value parameters

config

The store configuration

Attributes

Returns

The vector store or error

def apply(baseUrl: String, collectionName: String, apiKey: Option[String]): Result[QdrantVectorStore]

Create a QdrantVectorStore from base URL.

Create a QdrantVectorStore from base URL.

Value parameters

apiKey

Optional API key

baseUrl

Base URL for Qdrant API

collectionName

Collection name

Attributes

Returns

The vector store or error

def cloud(cloudUrl: String, apiKey: String, collectionName: String): Result[QdrantVectorStore]

Create a QdrantVectorStore for Qdrant Cloud.

Create a QdrantVectorStore for Qdrant Cloud.

Value parameters

apiKey

API key for authentication

cloudUrl

Qdrant Cloud URL

collectionName

Collection name

Attributes

Returns

The vector store or error

def local(collectionName: String): Result[QdrantVectorStore]

Create a QdrantVectorStore with default local settings.

Create a QdrantVectorStore with default local settings.

Connects to localhost:6333.

Value parameters

collectionName

Collection name (default: "vectors")

Attributes

Returns

The vector store or error