Skip to content

Commit

Permalink
copy changes to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
olirice committed Jul 28, 2023
1 parent 812f778 commit 43b73fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ docs = vx.create_collection(name="docs", dimension=3)

# add records to the *docs* collection
docs.upsert(
vectors=[
records=[
(
"vec0", # the vector's identifier
[0.1, 0.2, 0.3], # the vector. list or np.array
Expand All @@ -76,7 +76,7 @@ docs.create_index()

# query the collection filtering metadata for "year" = 2012
docs.query(
query_vector=[0.4,0.5,0.6], # required
data=[0.4,0.5,0.6], # required
limit=1, # number of records to return
filters={"year": {"$eq": 2012}}, # metadata filters
)
Expand Down

0 comments on commit 43b73fa

Please sign in to comment.