Skip to content

Commit

Permalink
staging
Browse files Browse the repository at this point in the history
  • Loading branch information
daveatweaviate committed Sep 13, 2024
1 parent 448bfe0 commit 3b9cfff
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 35 deletions.
7 changes: 3 additions & 4 deletions _includes/code/howto/indexes/indexes-v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ def print_response_iter(title, response):
# ### ENABLE HNSW - MULTIPLE ###
# ##############################

# START EnableHNSW
# START EnableMulti
# The Python client v3 doesn't support multiple named vectors.

# The Python client v3 doesn't support multiple named vectors. To use
# multiple named vectors, upgrade to the Python client v4.
#
# To use multiple named vectors, upgrade to the Python client v4.
# END EnableMulti
6 changes: 3 additions & 3 deletions _includes/code/howto/indexes/indexes-v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ async function createHNSWCollection(client: WeaviateClient, collectionName: stri
//////////////////////////////

// START EnableMulti
async function createMultiCollection(client: WeaviateClient, collectionName: string){
// Add this import line
// import { vectorizer, configure } from 'weaviate-client';
// Add this import line
// import { vectorizer, configure } from 'weaviate-client';

async function createMultiCollection(client: WeaviateClient, collectionName: string){
await client.collections.create({
name: collectionName,
vectorizers: [
Expand Down
56 changes: 28 additions & 28 deletions developers/weaviate/configuration/indexing/vector-indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ import CompressMethods from '/_includes/configuration/compression-methods.mdx';

<CompressMethods/>

### HNSW indexes
## HNSW indexes

import HNSWIntro from '/_includes/indexes/hnsw-intro.mdx';

<HNSWIntro/>

#### Collection configuration
### Collection configuration

Configure an HNSW index for a collection:

Expand Down Expand Up @@ -70,9 +70,33 @@ Configure an HNSW index for a collection:
</TabItem>
</Tabs>

#### Multiple named vectors configuration
See also:

- [HNSW index parameters](/developers/weaviate/config-refs/schema/vector-index#hnsw-index-parameters)

## Flat indexes

import FlatIntro from '/_includes/indexes/flat-intro.mdx';

<FlatIntro/>

See also:

- [Flat index parameters](/developers/weaviate/config-refs/schema/vector-index#flat-indexes)

## Dynamic indexes

import DynamicIntro from '/_includes/indexes/dynamic-intro.mdx';

<DynamicIntro/>

See also:

- [Dynamic index parameters](/developers/weaviate/config-refs/schema/vector-index#dynamic-index-parameters)

## Multiple named vectors

Configure an HNSW index for multiple named vectors:
Configure a collection to use [multiple named vectors](/developers/weaviate/config-refs/schema/multi-vector):

<Tabs groupId="languages">
<TabItem value="py" label="Python Client v4">
Expand Down Expand Up @@ -109,30 +133,6 @@ Configure an HNSW index for multiple named vectors:
</TabItem>
</Tabs>

See also:

- [HNSW index parameters](/developers/weaviate/config-refs/schema/vector-index#hnsw-index-parameters)

### Flat indexes

import FlatIntro from '/_includes/indexes/flat-intro.mdx';

<FlatIntro/>

See also:

- [Flat index parameters](/developers/weaviate/config-refs/schema/vector-index#flat-indexes)

### Dynamic indexes

import DynamicIntro from '/_includes/indexes/dynamic-intro.mdx';

<DynamicIntro/>

See also:

- [Dynamic index parameters](/developers/weaviate/config-refs/schema/vector-index#dynamic-index-parameters)

## Additional considerations

These are some additional things to consider when you configure indexing.
Expand Down

0 comments on commit 3b9cfff

Please sign in to comment.