Azure-Samples / Azure-Samples/rag-postgres-openai-python

Handling Multiple Tables with Embeddings in PostgreSQL

Đang mở
#259 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
505
Fork
1.1k
Merge trung bình
3 ngày 13 giờ
Pull request đã merge (30 ngày)
1

Mô tả

Hello,

I am Rahul, and we are currently facing an issue with our postgres_searcher implementation.

Our requirement is as follows:
We have multiple tables in our database, and we want to integrate all of them for search. In the given example, only the Item table is used, and when a query is asked, the system fetches records only from that single table based on the embeddings.

However, in our case, we have multiple tables such as Cars, Bike, and some relational tables (all of which include embedding columns). What we want is:

When we ask a Cars-related question, the system should fetch data from the Cars table.

When we ask a Bike-related question, the system should fetch data from the Bike table.

When we ask about relational data, the system should fetch from the respective relation table.

We are looking for an example that demonstrates this kind of implementation. Additionally, if there is a better approach to handle such scenarios, we would appreciate your suggestions.

Thanks,
Rahul

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.