Comments (3)
Hey @Hadryan, values are stored as floats (but the same thing could happen with double precision
since neither type is exact).
from pgvector.
Ok, but the question is why the values changed?
How to keep the original values?
from pgvector.
Pushed a change in the commit above to make the text representation more friendly. It now uses the same function that Postgres uses for float
, so the output is:
[0.459,0.276,1,-12.803,1,0.0804,0.889,0.009,0.217,0.354,89.477,56253,3]
The underlying values are still the same (inexact), so you'll want to use a different type like numeric[]
if storing the exact values is important.
from pgvector.
Related Issues (20)
- Theory behind HNSW HOT 1
- HNSW index building slow for large table HOT 2
- Could the repo start using the Releases tab? HOT 2
- ERROR: extension "vector" has no installation script nor update path for version "0.6.2" HOT 1
- 0.7.0 Plan
- I have a question about vector structure HOT 2
- Is pgVector performance competitive compared to other VectorDBs HOT 2
- Not able to connect with some named database HOT 1
- vector extension creation in docker image
- Unable to connect to server in pgadmin 4 HOT 2
- HNSW index is not used on 0.5.1 HOT 2
- Trouble on installing with mac (M1) HOT 10
- Error when installing pgvector on M1 with Postgresql 15.2 HOT 3
- apt install postgresql-16-pgvector is not found HOT 9
- Error building docker image (make: *** No rule to make target 'clean'. Stop.) HOT 2
- Server crashes when running tests on postgres built with ASAN HOT 2
- Are either int8 or fp8 vectors planned? HOT 4
- Query planner does not seem to be using HNSW index HOT 1
- I found a bug. There are no constraints on the index-related parameter settings. HOT 4
- ERROR: extension "vector" has no installation script nor update path for version "0.6.2" HOT 8
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 pgvector.