Skip to content

How Can We Create Custom Field Types in Payload? #10376

Closed Answered by flowingkhaos
flowingkhaos asked this question in Q&A
Discussion options

You must be logged in to vote

My situation was very specific, but not necessarily uncommon. I am using supabase through the postgres adapter. I wanted to create collections with an ' embeddings ' field, so that I can perform RAG on these tables using my own technology.

In that specific instance, supabase expects ' vector ' and ' tsvector ' column types for search functions to work as intended. These types aren't supported in payload. No matter how i flipped it, I wasn't able to create a type match, between the backend and supabase(postgres) for embeddings.

If your field typing issue in payload, is related to storing vectors(embeddings) in collections, here is my solution.

Supabase gives you two project slots by defaul…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@flowingkhaos
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by flowingkhaos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants