Skip to content
Discussion options

You must be logged in to vote

⚠️ Both your LibreChat and RAG_API Hugging Face Spaces must be public for this integration to work.

1. Set Up Your MongoDB Database

1. Use MongoDB Compass to connect to your LibreChat database.
2. Create a new collection named rag.
3. In the new rag collection:

  • Navigate to the Indexes tab.

  • Switch to the Search Indexes view.

  • Click Create Atlas Search Index, then configure it as follows:

    • Name: vector_index

    • Type: Vector Search

    • Index Definition:

      {
        "fields": [
          {
            "numDimensions": 1536,
            "path": "embedding",
            "similarity": "cosine",
            "type": "vector"
          },
          {
            "path": "file_id",
            "type": "filter"
          }
        ]
      }
  • Note: If you wish to use Hug…

Replies: 2 comments 2 replies

Comment options

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

Comment options

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

Answer selected by fuegovic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #3416 on July 22, 2024 12:07.