11 karma · joined Jun 15, 2021 (5y ago) · 24 submissions
2.
Infinite-memory, Context-aware, & Multimodal Chatbot(github.com ↗)
3 points · by pierrebrunelle · 1y ago · 1 comment
comment 1y ago · link · parent
@pxt.query def search_documents(query_text: str, user_id: str): sim = chunks.text.similarity(query_text) return ( chunks.where( (chunks.user_id == user_id) # Metadata filtering & (sim > 0.5) # Filter by similarity threshold & (pxt_str.len(chunks.text) > 30) # Additional filter/transformation ) .order_by(sim, asc=False) .select( chunks.text, source_doc=chunks.document, # Ref to the original document sim=sim, title=chunks.title, heading=chunks.heading, page_number=chunks.page ) .limit(20) )
For instance in https://github.com/pixeltable/pixeltable
comment 1y ago · link · parent
comment 1y ago · link · parent
People should build their own; it's easy. What's difficult is the underlying data infrastructure (storage and orchestration).
comment 1y ago · link · parent
The same problems arise with LLMs for Documents and Chunks, Audio and Samples, etc.
If you are into that:
- Object Detection on Video Frames: https://github.com/pixeltable/pixeltable/blob/main/docs/note...
- Text and images similarity search: https://github.com/pixeltable/pixeltable/tree/main/docs/samp...
LLM is just a function call. We are agnostic to whatever framework, library, and data format are used; we are focused on solving the data plumbing issues (mulitmodal storage and orchestration) with a simple python sdk: https://github.com/pixeltable/pixeltable.
comment 1y ago · link · parent
As you just showed, building an agent SDK is easy, so what's interesting to me is tackling:
- Infrastructure Sprawl: Juggling separate systems for vector search, state tracking, multimodal data handling, and monitoring leads to fragmented workflows and high operational costs. - State Management Nightmares: Reliably tracking agent memory, tool calls, and intermediate states across potentially long-running, asynchronous tasks is incredibly difficult. - Multimodal Integration Pain: Integrating and processing images, audio, video, and documents alongside text requires specialized, often disparate, tooling. - Observability Gaps: Understanding why an agent made a decision or failed requires visibility into its state and data lineage, which is often lacking.
And doing all of that while finding the right abstraction layer to leave all the application and business logic to the dev/users so they don't feel limited. It's difficult!
Besides, I don't know where you see a commercial offering? Everything is Apache 2.0/Open Source from A to Z.
comment 1y ago · link · parent
Yes: Memory, observability, versioning, and lineage being built-in is a derivative of unifying orchestration and storage: https://docs.pixeltable.com/docs/datastore/computed-columns.
comment 1y ago · link · parent
https://github.com/pixeltable/pixelagent/tree/main/examples/... for multiple tools/agents. A tool is just a UDF. You can have as many as you want.
The goal of this reference agent SDK is to showcase the flexibility of Pixeltable (the underlying unified storage and orchestration system) that is Open Source and Apache 2.0.
This is where storage is defined: https://github.com/pixeltable/pixelagent/blob/main/pixelagen.... These are very simple examples.
Here's how an Agentic Reddit bot would work for instance: https://github.com/pixeltable/pixeltable/tree/main/docs/samp...
comment 1y ago · link · parent
Pixelagent is a reference implementation for a multimodal agent framework to show that an agent class is easy to build and users should be empowered to build their own from scratch for their use cases.
Regarding Memory, to me it's just about Data Storage, Indexing, Orchestration, and Retrieval and I don't know why we should abstract Memory away from users. Memory will mean so many different things for many use cases.
Let's say you want:
- Working memory: Holds current context and immediate interaction history within the agent's context window -> this is just about passing Q&A pairs to maintain context alongside with roles.
- Episodic memory: Stores specific past experiences and interactions -> this is just about indexing past exchanges and having semantic search on it.
- Semantic memory: Organizes specific knowledge in structured formats -> this is just about building a custom logic (udf) to decide how and what to extract insight from and then retrieve it.
I've implemented them all in this example: https://github.com/pixeltable/pixelbot
11.
Show HN: Pixelagent – Build your Stateful Agent Framework in 200 lines of code(github.com ↗)
30 points · by pierrebrunelle · 1y ago · 14 comments
comment 1y ago · link · parent
pip install pixeltable-yolox
Key stuff fixed:
- Works with Python 3.9+
- Compatible with current PyTorch
- No more version mismatches
- Actually runs in Colab without hacks
Will keep the Apache 2.0 license. No architectural changes to the model, just focused on making it usable in production.
13.
Pixeltable-yolox – YOLOX that works with modern Python(github.com ↗)
1 points · by pierrebrunelle · 1y ago · 1 comment
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
To empower you to fix exceptions quickly we're releasing genai: an open-source library that brings the power of ChatGPT into error handling within Jupyter notebook.
17.
Bringing GPT to Interactive Python(github.com ↗)
6 points · by pierrebrunelle · 3y ago · 1 comment