Comments (2)
As you can see, the rank_hybrid
function is simply a UDF we've created for convenience.
I could ask for more info to debug, but since I can't access your environment the best way to debug might be to run the underlying query that the UDF is running and poke around the CTEs to see where the error is coming from.
from paradedb.
As you can see, the
rank_hybrid
function is simply a UDF we've created for convenience.I could ask for more info to debug, but since I can't access your environment the best way to debug might be to run the underlying query that the UDF is running and poke around the CTEs to see where the error is coming from.
I think none of these are relevant. The root cause lies in the division calculation.
If there's only one result, then max - min
will always be 0.
Just execute this statement alone with the query and set the limit to 1.
SELECT (('[...]' <=> "embedding") - MIN('[...]' <=> "embedding") OVER ()) /
(MAX('[...]' <=> "embedding") OVER () - MIN('[...]' <=> "embedding") OVER ()) AS "score"
FROM "table_name"
ORDER BY '[...]' <=> "embedding"
LIMIT 1;
from paradedb.
Related Issues (20)
- Use ALLOW_EMPTY_PASSWORD in Bitnami
- Query errors on 0.6.1 HOT 8
- "Illegal Instruction" error with pg_analytics and pg_search installed on self-hosted Postgres HOT 1
- dense_rank() results in "ERROR: Error converting UInt64 into BuiltIn(INT8OID)" HOT 1
- Add `pg_search` support to Django HOT 1
- Add `pg_search` support for Prisma ORM
- Upgrade Tantivy version
- Allow DEFAULT_REMOVE_TOKEN_LENGTH to be changed
- Error when creating an index on MacOS HOT 24
- pg_search index size keeps growing
- Expose options for lenient query parsing + conjunction/disjunction handling
- Provide RPM packages for EL8 / EL9 HOT 8
- pg-search deb package name is still `bm25` HOT 1
- Consider building with pgrx 0.11.4 rather than a alpha version HOT 2
- Make telemetry not write to the filesystem
- Expose CSV/JSON options to the user
- Support Google Cloud Storage
- Sanitize user mapping options
- After a `pg_lakehouse` error, subsequent queries crash with "there is no reactor running"
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 paradedb.