Skip to content
Snippets Groups Projects
Commit 10248fb2 authored by Marcus Schiesser's avatar Marcus Schiesser
Browse files

chore: move clip example

parent 446dc85b
No related branches found
No related tags found
No related merge requests found
test/data/**
# CLIP Embedding Example
Uses the Clip model to embed images and text.
## Get started
Make sure, you have installed the local dev version of `llamaindex`, see [README.md](../../packages/core/README.md).
Then, install dependencies:
```
pnpm install
```
Then call
```
node 1.js
```
{
"version": "0.0.1",
"private": true,
"name": "clip-test",
"dependencies": {
"dotenv": "^16.3.1",
"llamaindex": "workspace:*"
},
"devDependencies": {
"@types/node": "^18",
"ts-node": "^10.9.1"
},
"scripts": {
"lint": "eslint .",
"start": "ts-node ./clip_test.ts"
}
}
\ No newline at end of file
/* eslint-disable turbo/no-undeclared-env-vars */
import { ClipEmbedding, SimilarityType, similarity } from "llamaindex";
async function main() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment