Skip to content

Commit 9b9da68

Browse files
authored
remove collections (#147)
1 parent c1946d9 commit 9b9da68

File tree

12 files changed

+4
-1986
lines changed

12 files changed

+4
-1986
lines changed

docs.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
"modus/app-manifest",
9090
"modus/data-fetching",
9191
"modus/model-invoking",
92-
"modus/search",
9392
"modus/api-generation",
9493
"modus/authentication",
9594
"modus/error-handling",
@@ -107,7 +106,6 @@
107106
"group": "AssemblyScript SDK",
108107
"pages": [
109108
"modus/sdk/assemblyscript/overview",
110-
"modus/sdk/assemblyscript/collections",
111109
"modus/sdk/assemblyscript/console",
112110
"modus/sdk/assemblyscript/dgraph",
113111
"modus/sdk/assemblyscript/graphql",
@@ -123,7 +121,6 @@
123121
"group": "Go SDK",
124122
"pages": [
125123
"modus/sdk/go/overview",
126-
"modus/sdk/go/collections",
127124
"modus/sdk/go/console",
128125
"modus/sdk/go/dgraph",
129126
"modus/sdk/go/graphql",
@@ -503,10 +500,6 @@
503500
"destination": "/introduction",
504501
"permanent": true
505502
},
506-
{
507-
"source": "/modus/sdk/collections",
508-
"destination": "/modus/sdk/assemblyscript/collections"
509-
},
510503
{
511504
"source": "/modus/sdk/console",
512505
"destination": "/modus/sdk/assemblyscript/console"

getting-started-with-hyper-commerce.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,6 @@ In the Hypermode console, you’ll see several key components of your project:
120120
- **[Functions](/modus/overview):** These are serverless functions written in
121121
AssemblyScript (a TypeScript-like language) that are automatically exposed as
122122
GraphQL APIs. Once deployed, you can query these functions within your app.
123-
- **[Collections](/modus/sdk/assemblyscript/collections):** Hypermode offers
124-
built-in key-value storage, known as collections, with support for vector
125-
embeddings. This allows you to store and retrieve data efficiently, without
126-
requiring a database for basic use cases.
127123
- **[Models](/modus/sdk/assemblyscript/models):** This section represents the AI
128124
models defined for your project. These models handle tasks like embedding text
129125
into vectors for search. Hypermode provides open source shared and dedicated

modus/app-manifest.mdx

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ resources for your functions at runtime. You define the manifest in the
2020
<Card title="Models" icon="cube" href="#models">
2121
Define inference services for use in your functions
2222
</Card>
23-
<Card title="Collections" icon="table" href="#collections">
24-
Define sets of text data to enable natural language search
25-
</Card>
2623
</CardGroup>
2724

2825
### Base manifest
@@ -516,46 +513,3 @@ dedicated instance of the model. Your project's functions securely access the
516513
hosted model, with no further configuration required.
517514

518515
</Tip>
519-
520-
## Collections
521-
522-
Collections simplify the usage of vector embeddings to build natural language
523-
search features. The `collections` object allows you to define indexed data
524-
types that are automatically embedded and searchable based on the search method
525-
you define.
526-
527-
Each collection requires a unique name, specified as a key, containing only
528-
alphanumeric characters and hyphens.
529-
530-
For more detail on implementing Collections, see [Search](/modus/search).
531-
532-
```json modus.json
533-
{
534-
"collections": {
535-
"myProducts": {
536-
"searchMethods": {
537-
"searchMethod": {
538-
"embedder": "myEmbedder",
539-
"index": {
540-
"type": "sequential"
541-
}
542-
}
543-
}
544-
}
545-
}
546-
}
547-
```
548-
549-
<ResponseField name="searchMethods" type="object" required>
550-
Search methods define a pair of an embedder and index to make available for
551-
searching the data in your collection.
552-
</ResponseField>
553-
554-
<ResponseField name="embedder" type="string" required>
555-
The function name to embed text added to the collection.
556-
</ResponseField>
557-
558-
<ResponseField name="index" type="string">
559-
If provided, describes the index mechanism used by the search method. `type`:
560-
specifies the type of the index. For example, `sequential` (default).
561-
</ResponseField>

modus/model-invoking.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,5 +256,4 @@ export function classifyText(text: string, threshold: f32): string {
256256

257257
Modus supports invoking embedding models for text, images, and other data types.
258258
You use the outputs of these models for implementing search, recommendation, and
259-
similarity functions in your app. Refer to [Search](/modus/search) for more
260-
information on how to use embeddings in your app.
259+
similarity functions in your app.

modus/overview.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,5 @@ A few of the core Modus features include:
5252
| [Multi-Language](/modus/project-structure) | Write functions in Go and AssemblyScript, with additional language support in development |
5353
| [Auto-Generated API](/modus/api-generation) | A secure API is automatically generated from your function signatures |
5454
| [Model Integration](/modus/model-invoking) | Connect and invoke AI models from different providers, without learning a new SDK |
55-
| [Search](/modus/search) | Add natural language search and recommendations with integrated vector embeddings |
5655
| [Authentication](/modus/authentication) | Secure your API endpoints with minimal configuration |
5756
| **WebAssembly Runtime** | Small and portable execution engine for deployment across server, edge, and desktop computes |

modus/project-structure.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ configuration separated from your source code.
4646

4747
The `modus.json` [app manifest](/modus/app-manifest) is the central
4848
configuration file for your Modus app. It defines the endpoints, connections,
49-
models, and collections that your code has available to it during runtime.
50-
Because Modus is a secure-by-default framework, only the resources defined in
51-
this file are accessible to your app.
49+
and models that your code has available to it during runtime. Because Modus is a
50+
secure-by-default framework, only the resources defined in this file are
51+
accessible to your app.
5252

5353
## Initializing your app
5454

modus/run-locally.mdx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,3 @@ hyp login
9898

9999
After logging in, your app automatically connects to Hypermode's
100100
[Model Router](/model-router) when running locally.
101-
102-
## Working with Collections
103-
104-
Collections requires a PostgreSQL instance for local development. While
105-
Hypermode manages this database in production, you'll need to set up PostgreSQL
106-
locally when developing outside the Hypermode platform. For detailed setup
107-
instructions, see
108-
[Develop locally with Collections](/modus/search#develop-locally-with-collections).

0 commit comments

Comments
 (0)