Documentation
¶
Index ¶
- type Client
- func (c *Client) DeleteCollection(ctx context.Context, collectionName string) error
- func (c *Client) DeleteDocument(ctx context.Context, collectionName, documentID string) error
- func (c *Client) GetCollectionSchema(ctx context.Context, collectionName string) ([]string, error)
- func (c *Client) GetDocument(ctx context.Context, collectionName, documentID string) (*Document, error)
- func (c *Client) Health(ctx context.Context) error
- func (c *Client) ListCollections(ctx context.Context) ([]string, error)
- func (c *Client) ListDocuments(ctx context.Context, collectionName string, limit int) ([]Document, error)
- type Config
- type Document
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the Weaviate client with additional functionality
func (*Client) DeleteCollection ¶
DeleteCollection deletes all objects from a collection
func (*Client) DeleteDocument ¶
DeleteDocument deletes a specific document by ID
func (*Client) GetCollectionSchema ¶
GetCollectionSchema returns the schema for a collection
func (*Client) GetDocument ¶
func (c *Client) GetDocument(ctx context.Context, collectionName, documentID string) (*Document, error)
GetDocument retrieves a specific document by ID
func (*Client) ListCollections ¶
ListCollections returns a list of all collections
func (*Client) ListDocuments ¶
func (c *Client) ListDocuments(ctx context.Context, collectionName string, limit int) ([]Document, error)
ListDocuments returns a list of documents in a collection Note: Currently shows document IDs only. To show actual document content/metadata, we would need to implement dynamic schema discovery for each collection.
Click to show internal directories.
Click to hide internal directories.