Comments (9)
This may work:
declare module 'sqlite-vss' {
export interface Database {
// after https://deno.land/x/[email protected]/mod.ts?s=Database#method_loadExtension_0
loadExtension(file: string, entrypoint?: string | undefined): void;
}
/**
* Loads the sqlite-vss extension on the given sqlite3 database.
*/
export function loadVector(database: Database): void;
/**
* Loads the sqlite-vss extension on the given sqlite3 database.
*/
export function loadVss(database: Database): void;
/**
* Loads the sqlite-vss extension on the given sqlite3 database.
*/
export function load(database: Database): void;
}
from sqlite-vss.
Hey @linonetwo , v0.1.1-alpha.9
just published with the .d.ts
types you added - can you give it a try and lmk if it works as expected?
from sqlite-vss.
Yes it works, thanks for rapid update.
from sqlite-vss.
I was on Windows PC last few days, back on Mac today.
from sqlite-vss.
Sorry, but the .d.ts file isn't publish to npm, maybe we need to change
sqlite-vss/bindings/node/sqlite-vss/package.json.tmpl
Lines 18 to 22 in ca4aeb3
to add it. But should I also add index.js too?
from sqlite-vss.
@linonetwo v0.1.1-alpha.17
now includes the .d.ts
file in files
, can you give it a shot?
from sqlite-vss.
from sqlite-vss.
Sorry but I finally decided to copy code and managed in my codebase, because the path from loadablePathResolver
maybe incorrect after electron app packaged. (It will be .webpack/main/index.js
in other folder instead of in node_modules folder.)
from sqlite-vss.
I'm trying to add this to https://github.com/tiddly-gittly/TidGi-Desktop , to provide note search. Thank you for your library!
from sqlite-vss.
Related Issues (20)
- Support searching multiple vectors at the same time HOT 2
- error on ubuntu 18.04 HOT 2
- JSON / buffer performance HOT 1
- TypeError: expected f64 HOT 1
- 'Unable to open database file' when cloning working db to memory in better-sqlite3 using .serialize() HOT 2
- Python code does not work HOT 1
- Metric INNER_PRODUCT should return the maximum HOT 1
- Update readme for NPM package
- libc++abi: terminating due to uncaught exception of type faiss::FaissException HOT 1
- "Error reconstructing vector" when reading a newly inserted vector from different processes
- zsh: illegal hardware instruction HOT 1
- Computing vector distance functions (like vss_inner_product) incorrectly parses the data HOT 1
- Not loading in BUN HOT 2
- IndexBinaryFlat support?
- sqlite-vss tables is not suported by cr-sql HOT 1
- Fail to query empty index
- Ability to attach uuid or arbitrary identifier to index
- Fail to load dylib from lates release v0.1.2
- FaissException when virtual table is empty HOT 2
- Error on Ubuntu 22.04 with Node 20.12.1 with Better-Sqlite 9.4.5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlite-vss.