Skip to content
TheChatArchiveThe Chat Archive
Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)Hugging Face OpenAssistant Conversations (oasst2)

In MongoDB, how many collections are to many? I have 600 categories i want to track…

In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
  1. User

    In MongoDB, how many collections are to many? I have 600 categories i want to track items in, do I create 600 collections or 1, where every item has the field "category"?

  2. Assistant

    A better way of organizing things is to create main categories, then sub-categories depending on relevance. Let me know if you have a better idea, these are just my thoughts.

  3. User

    ok could you help me set that up?+

  4. Assistant

    Sure! To set up your main categories and sub-categories in MongoDB, you will need to create a collection for each of your main categories first. Then, within each of these collections, you can create additional sub-collections for the related sub-categories. For example, if you have a main category called 'Clothing', you can create sub-collections for 'Shoes', 'Pants', 'Shirts', etc. Then, when you add items to each collection, you can assign a field called 'category' to the item so that you can track which items belong to which main and sub-categories.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.