HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ekzhu

no profile record

Submissions

DojoZero – AI Agent Sport Betting Arena

dojozero.live
1 points·by ekzhu·3 เดือนที่ผ่านมา·0 comments

CoPaw – A truly local OpenClaw alternative with customized models (2B, 4B, 9B)

github.com
2 points·by ekzhu·4 เดือนที่ผ่านมา·1 comments

Show HN: TuFT – Open-source multi-tenant, Tinker-compatible fine-tuning platform

github.com
1 points·by ekzhu·5 เดือนที่ผ่านมา·0 comments

[untitled]

1 points·by ekzhu·3 ปีที่แล้ว·0 comments

What Is Coming Next for Text-to-SQL

ekzhu.medium.com
1 points·by ekzhu·3 ปีที่แล้ว·0 comments

comments

ekzhu
·4 เดือนที่ผ่านมา·discuss
CoPaw comes with CoPaw-Flash models fine-tuned for personal assistant scenarios: https://huggingface.co/collections/agentscope-ai/copaw-flash
ekzhu
·4 ปีที่แล้ว·discuss
Check out MATCH_RECOGNIZE. It is a new SQL feature that does just what the post describes.
ekzhu
·4 ปีที่แล้ว·discuss
The Dataframe is loaded from disk true, but it is possible that batch loading is faster (esp. with structured data) than row-by-row translation Postgres types into Python types. Would be interesting to see the benchmark results.

> I think the memory inefficiency involved in high level pandas operations is more likely to be a driving force to move operations into lower layers, than CPU runtime.

Indeed. Not only memory but also inefficiency related to Python itself. It would be great if feature engineering pipelines can be pushed down to lower layers as well. But for now, the usability of Python is still unparallel.
ekzhu
·4 ปีที่แล้ว·discuss
Great idea! I see this is implemented using the Python language interface supported by PostgreSQL and importing sklearn models. I always wonder how scalable this is considering the serialization-deserialization overhead between Postgres' core and Python. Do you see any significant performance difference between this and training the sklearn models directly on something like Dataframes?
ekzhu
·5 ปีที่แล้ว·discuss
I am curious what is issue with existing migration tools? There are so many tools out there. What is the problem they are not solving?
ekzhu
·5 ปีที่แล้ว·discuss
Most of it should be cached. I think it’s a trade off between server load and client experience. Millions of 10KB requests << thousands of 500KB requests (also potentially with lots of compressed stuff).
ekzhu
·5 ปีที่แล้ว·discuss
TLDR: Arrow got an SQL interface provided by DuckDB.

So you have a new way to run SQL on Parquet et al through DuckDB -> Arrow -> Parquet. Of course, you still need to watch out for memory usage of your SQL query if it contains JOINs or Window functions because the integration is designed for streaming rows.
ekzhu
·5 ปีที่แล้ว·discuss
There is no reason for both approaches to not coexist: a centralized catalog managed by a small team, setting the “gold standard” for the many decentralized data producers and curators, who are incentivized to maximize their impacts (i.e., usage) by having higher quality data following the standard.

Another thing to point out: besides relying on the future promises of ML, there are already many signals that can be used by a centralized catalog for data discovery. For example: data sketches (MinHash, Hyperloglog) for joinable datasets, social signals (likes, comments, stars, etc. see Alation and Select Star SQL), lineages through data movements (e.g., Azure Data Factory and Azure Purview). If the centralized catalog uses those signals, then the data producers are incentivized to provide them for better visibility.
ekzhu
·5 ปีที่แล้ว·discuss
I cannot continue reading after this following “declaration”… Author should take a look at the Wikipedia page for TF-IDF.

> As someone who has a Ph.D. in Human-computer Interaction ;-), I feel like I am entitled to define a condition of "good" in relevance here. I hereby declare that:

>> A good top-K algorithm should rank a document containing more user query terms higher than a document containing less number of user query terms.

> This makes perfect sense. Right?

Also, “most search engines” don’t use vector space model as the only way to rank result, for example, page rank.

Edit: in some search scenarios finding the documents with the most query terms make sense, but Lucene can also rank using this metric. Still, applaud the author's effort in digging into research literature. Search relevance is very hard and standard off the shelf metrics like TF-IDF and page rank are often not enough. Good search usually requires deep understanding of the specific subject domain and hand-tuning tons of signals, many of which aren't even strictly based on search terms (e.g., previously purchased products on a store's website, geographic location, trending results).
ekzhu
·5 ปีที่แล้ว·discuss
Thanks for the response. I enjoy reading your blog. What you said reminds me of the post [0] in which you compared Timescale with InfluxDB and argued that SQL is better. Has your position changed due to new observation regarding usability?

[0] https://blog.timescale.com/blog/sql-vs-flux-influxdb-query-l...
ekzhu
·5 ปีที่แล้ว·discuss
Thanks for the background. I find it fascinating that the small-data scenarios in analytics are still kind of chaotic when it comes to tooling. Full-fledged SQL queries on relations seems heavy but closer to raw data. The timevector custom data type is like a middle ground. Each timevector is essentially a pre-aggregated time series (maybe compressed also) so approach likely adds performance benefit when the task is to analyze many many small time series. Although I still feel supporting 70+ new functions adds a lot of maintenance burden, and people cannot debug/extend this set of functions because they are not SQL. I am wondering if you often find that users just want an out-of-box solutions or they need to have the ability to tweak or adding their own domain-specific logic.
ekzhu
·5 ปีที่แล้ว·discuss
Database researcher here.

This is really cool! I wonder what was the initial drive for this new feature?

Is this meant to be a "short-cut" to express complicated SQL queries, or is this meant to adding new semantics beyond SQL? While I like the idea of custom data types with dataflow-like syntax, implementing a whole new query processing engine for the new data type seems like a lot of engineering work. Also you now have to handle many edge cases such as very very large time series -- I wonder if you have efficient lookup mechanisms on timevectors yet, and various timestamp and value types. If all these new syntax can actually be expressed using SQL, however complex, I think a "lazier" approach is to write a "translator" that rewrites the new syntax into good old SQLs or add a translator at planning stage. This way you can take advantage of Postgres' optimizer and let it do the rest of heavy lifting.

Kusto has a similar data type "series" that is also created from aggregating over some columns (https://docs.microsoft.com/en-us/azure/data-explorer/kusto/q...).
ekzhu
·5 ปีที่แล้ว·discuss
Interesting findings:

1. "Amazon Restaurant & Bar Inc" received 1.3M in FY2021 while apparently empolying only 8 people and taking a revenue of 96k (https://www.manta.com/c/mhx084z/amazon-restaurant-bar-inc).

2. Google received 11k in the last 12 months, less than a Florida man named Christian Google.

3. Palantir Technologies Inc. 231.3M, versus Microsoft Corporation 357.5M in the last 12 months.