-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
107 lines (70 loc) · 1.92 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
# knitr ops
knitr::opts_chunk$set(
eval=FALSE,
include=TRUE,
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
# load lib
library(pineconer)
```
# Pineconer
<!-- badges: start -->
<!-- badges: end -->
The goal of pineconer is to provide a way to store and access vectors using the Pincone API
## Installation
You can install the development version of pineconer like so:
``` r
# FILL THIS IN! HOW CAN PEOPLE INSTALL YOUR DEV PACKAGE?
```
## Configuration
You can set the API key and region in your env file. usethis::edit_r_environ() is a convenient way to open the file. Next set the following two variables.
PINECONE_API_KEY = "YOUR API KEY"
PINECONE_ENVIRONMENT = "PINECONE Region"
## Collection Operations
Pincone API support the following index operations, the are implemented like for like in the pineconer package.
```{r collection}
# list collections
list_collections()
# create collection
create_collection("xxx","xxx")
# describe collection
describe_collection(collection_name = "xxx")
# delete collection
delete_collection("xxx")
```
## Index Operations
```{r index}
# list indexes
list_indexes()
# create index
create_index("xxx")
# describe index
describe_index("mollie-help")
# delete index
delete_index("xxx")
# configure index
configure_index(index_name = "xxx",
replica = 1,
pod_type = "s1.x2")
```
## Vector Operations
```{r}
# describe index stats
stats <- describe_index_stats( index_name = "help",
project_name = "svc",
filter = list( language = "english")
)
# query
# delete
# fetch
# update
# upsert
```