EVA: AI-Relational Database System
evadb.readthedocs.io
evadb.readthedocs.io
1. First-class support for unstructured data: EVA natively supports querying over videos, audio, etc. For instance, it manages a video as a table, mapping each tuple to a video frame.
2. Cascades-style query optimizer: EVA has an AI-centric query optimizer with built-in support for cost-based query optimization, predicate reordering, caching of expensive models, etc.
3. First-class support for vector embeddings: EVA supports similarity search using embeddings stored in a vector database.
Similarities to MindsDB:
1. EVA is implemented in Python and uses sqlalchemy for connecting to a structured database system (PostgreSQL, MySQL, etc.)
2. EVA supports Huggingface and OpenAI pipelines in the form of user-defined functions.
We will love to hear from the developers of MindDB if our high-level analysis is correct :)
BTW, EVA itself is designed for analyzing sports games -- like touchdowns in a football game. This notebook shows how an action recognition model can be run on an American Sign Language video to identify the correct word [1]. Similarly, a model for identifying touchdowns and players can be used to run interesting queries over a football game.
SELECT FIRST(id), ASLActionRecognition(SEGMENT(data))
FROM ASL_ACTIONS
SAMPLE 5
GROUP BY '16f';
[1] https://github.com/georgia-tech-db/eva/blob/master/tutorials...Coming up with an open benchmark for AI-Relational database systems is essential [3]. Please share your thoughts on any ideas for benchmarking :)
[1] https://github.com/georgia-tech-db/eva/blob/e123820c79b902d5...
We wanted to express our heartfelt gratitude to all of you for your support for the EVA AI-Relational Database System last week [1]. The feedback from the HN community has been truly overwhelming :)
We were planning to make an HN post based on these features we have since added [2], but @jonbaer thankfully beat us to it :)
- Using ChatGPT/LLM + Whisper (Open AI + Hugging Face) models to ask questions based on videos/tables etc. You can check out the notebook here [3].
LOAD VIDEO 'russia_ukraine.mp4' INTO VIDEOS;
CREATE MATERIALIZED VIEW
TEXT_SUMMARY(text) AS
SELECT SpeechRecognizer(audio) FROM VIDEOS;
CREATE UDF SpeechRecognizer
TYPE HuggingFace
'task' 'automatic-speech-recognition'
'model' 'openai/whisper-base';
SELECT ChatGPT('Is this video summary related to Ukraine-Russia war', text) FROM TEXT_SUMMARY;
- Joining structured data tables with OCRExtractor model output
SELECT * FROM MyImages
JOIN LATERAL OCRExtractor(data) AS T(a,b,c)
JOIN LicensePlateCSV B
ON FuzzDistance(T.a, B.label) > 50;
- Vector index support for similarity search [5]
CREATE INDEX reddit_sift_object_index
ON reddit_object_dataset (SiftFeatureExtractor(Crop(data, bboxes)))
USING HNSW
SELECT name FROM reddit_object_dataset ORDER BY
Similarity(
SiftFeatureExtractor(Open('{path}')),
SiftFeatureExtractor(data)
)
LIMIT 5
- Using YOLO models to detect objects [6]
CREATE UDF IF NOT EXISTS Yolo
TYPE ultralytics
'model' 'yolov8m.pt';
SELECT id, Yolo(data)
FROM ObjectDetectionVideos
WHERE id < 20
Your feedback and suggestions have already been instrumental in shaping our roadmap and prioritizing new features! We are actively working on incorporating your ideas and addressing your concerns to enhance the functionality, performance, and user experience of EVA. Please email me (arulraj@gatech.edu) with any questions, ideas, or suggestions on EVA.[1] https://news.ycombinator.com/item?id=35764355
[2] https://github.com/georgia-tech-db/eva/releases/tag/v0.2.3
[3] https://evadb.readthedocs.io/en/stable/source/tutorials/08-c...
[4] https://github.com/georgia-tech-db/eva/blob/master/tutorials...
[5] https://github.com/georgia-tech-db/eva/blob/a6a6ecc7e5c0d9d4...
[6] https://evadb.readthedocs.io/en/stable/source/tutorials/02-o...
Btw, this page renders 404 https://evadb.readthedocs.io/en/stable/source/overview/video...
C&C Tiberian Sun, short for Command & Conquer: Tiberian Sun, is a real-time strategy (RTS) video game developed by Westwood Studios and released by Electronic Arts in 1999. It is the sequel to the highly popular game Command & Conquer (1995) and is part of the Command & Conquer series."
In the real-time strategy game Command & Conquer: Tiberian Sun, the phrase "Welcome back, Commander" is a memorable reference that occurs at the start of each mission when the player resumes playing the game after a break or reloading a saved game.
The phrase is spoken by the EVA (Electronic Video Agent) computerized voice, which serves as the player's AI assistant throughout the game. The EVA voice welcomes the player with the line "Welcome back, Commander" to indicate that the player has returned to the game and is ready to continue commanding their forces.
[1] https://news.ycombinator.com/reply?id=35768822Anyway now you've written it down it'll get scraped, included in the training set, and he a reliable citation for the future!
Another fun piece of trivia for those who missed direct experience of the original, is that the video I liked to is not exactly of a normal mission intro but played at the start of the game, where it was particularly well placed in relation to the installer, as can be seen here https://www.youtube.com/watch?v=X3S6_3f4HhU
- MongoDB
- ZODB
- Others
- This is also how disk file systems operate
You access items by their path, instead of id. Also path is relevant how the data is physically stored, fetching nearby data being cheaper.
To work with this kind of data in SQL you need to construct recursive CTE queries. While it’s possible, it is a bit akward sometimes.
For our data, we use Apache Solr, but a schema modeled on how we think the human schema works - its quite simple actually.
Also underlying your comment is this idea:
> Anything foreign to how humans think cannot help achieve intelligence.
Or:
> Human intelligence is the only possible kind of intelligence.
Bullshit. You could just have easily written off fixed-wing aircraft by saying they're completely foreign to how birds fly. It's silly to think that our particular form of intelligence is the only possible form of intelligence.
[1] https://github.com/georgia-tech-db/eva/tree/master/docker