vector_search

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

README

Vector Store

Getting Started

package main

import (
    "log"
    "github.com/pocketbase/pocketbase"
    vector_store "github.com/rodydavis/pocketbase-plugins/vector-store"
)

func main() {
	app := pocketbase.New()

	err = vector_store.Init(app, "vectors")
	if err != nil {
		log.Fatal(err)
	}

    if err := app.Start(); err != nil {
		log.Fatal(err)
	}
}
REST API
curl -X GET http://127.0.0.1:8090/api/collections/vectors/records/vector-search?search=Hello

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColPrefix = "$$$"

Functions

func Init

func Init(app *pocketbase.PocketBase, collections ...VectorCollection) error

Types

type VectorCollection

type VectorCollection struct {
	Name        string
	ExtraFields []*schema.SchemaField
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳