Skip to content

Commit

Permalink
Fix broken example links in README (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcwebdev authored Jul 17, 2024
1 parent d0f6246 commit 56f7362
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ await client.query('CREATE INDEX ON items USING ivfflat (embedding vector_l2_ops

Use `vector_ip_ops` for inner product and `vector_cosine_ops` for cosine distance

See a [full example](tests/pg/index.test.mjs)
See a [full example](tests/pg.test.mjs)

## Knex.js

Expand Down Expand Up @@ -145,7 +145,7 @@ await knex.schema.alterTable('items', function (table) {

Use `vector_ip_ops` for inner product and `vector_cosine_ops` for cosine distance

See a [full example](tests/knex/index.test.mjs)
See a [full example](tests/knex.test.mjs)

## Objection.js

Expand Down Expand Up @@ -202,7 +202,7 @@ await knex.schema.alterTable('items', function (table) {

Use `vector_ip_ops` for inner product and `vector_cosine_ops` for cosine distance

See a [full example](tests/objection/index.test.mjs)
See a [full example](tests/objection.test.mjs)

## Kysely

Expand Down Expand Up @@ -259,7 +259,7 @@ await db.schema.createIndex('index_name')

Use `vector_ip_ops` for inner product and `vector_cosine_ops` for cosine distance

See a [full example](tests/kysely/index.test.mjs)
See a [full example](tests/kysely.test.mjs)

## Sequelize

Expand Down Expand Up @@ -321,7 +321,7 @@ const Item = sequelize.define('Item', ..., {

Use `vector_ip_ops` for inner product and `vector_cosine_ops` for cosine distance

See a [full example](tests/sequelize/index.test.mjs)
See a [full example](tests/sequelize.test.mjs)

## pg-promise

Expand Down Expand Up @@ -373,7 +373,7 @@ await db.none('CREATE INDEX ON items USING ivfflat (embedding vector_l2_ops) WIT

Use `vector_ip_ops` for inner product and `vector_cosine_ops` for cosine distance

See a [full example](tests/pg-promise/index.test.mjs)
See a [full example](tests/pg-promise.test.mjs)

## Prisma

Expand Down Expand Up @@ -423,7 +423,7 @@ const embedding = pgvector.toSql([1, 2, 3])
const items = await prisma.$queryRaw`SELECT id, embedding::text FROM items ORDER BY embedding <-> ${embedding}::vector LIMIT 5`
```

See a [full example](tests/prisma/index.test.mjs) (and the [schema](prisma/schema.prisma))
See a [full example](tests/prisma.test.mjs) (and the [schema](prisma/schema.prisma))

## Postgres.js

Expand Down Expand Up @@ -472,7 +472,7 @@ await sql`CREATE INDEX ON items USING ivfflat (embedding vector_l2_ops) WITH (li

Use `vector_ip_ops` for inner product and `vector_cosine_ops` for cosine distance

See a [full example](tests/postgres/index.test.mjs)
See a [full example](tests/postgres.test.mjs)

## Slonik

Expand Down Expand Up @@ -518,7 +518,7 @@ await pool.query(sql.unsafe`CREATE INDEX ON items USING ivfflat (embedding vecto

Use `vector_ip_ops` for inner product and `vector_cosine_ops` for cosine distance

See a [full example](tests/slonik/index.test.mjs)
See a [full example](tests/slonik.test.mjs)

## TypeORM

Expand Down Expand Up @@ -571,7 +571,7 @@ const items = await itemRepository
.getMany();
```

See a [full example](tests/typeorm/index.test.mjs)
See a [full example](tests/typeorm.test.mjs)

## MikroORM

Expand Down Expand Up @@ -615,7 +615,7 @@ const items = await em.createQueryBuilder(Item)

Also supports `maxInnerProduct`, `cosineDistance`, `l1Distance`, `hammingDistance`, and `jaccardDistance`

See a [full example](tests/mikro-orm/index.test.mjs)
See a [full example](tests/mikro-orm.test.mjs)

## Drizzle ORM

Expand Down Expand Up @@ -663,7 +663,7 @@ const allItems = await db.select()

Also supports `innerProduct`, `cosineDistance`, `l1Distance`, `hammingDistance`, and `jaccardDistance`

See a [full example](tests/drizzle-orm/index.test.mjs)
See a [full example](tests/drizzle-orm.test.mjs)

## History

Expand Down

0 comments on commit 56f7362

Please sign in to comment.