{
  "id": "task_libraries:vector-database/javascript",
  "path": "/exapedia/javascript-vector-database-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript vector database libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript vector database libraries store embeddings and find the stored items closest to a query vector. A client either calls a hosted or self-run vector database over HTTP or gRPC or runs an embedded index inside the application process. These libraries let AI agents and search features retrieve relevant documents by meaning."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript vector database libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#orama-orama",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F127"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pinecone",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pgvector",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#qdrant-rest-client",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#lancedb-lancedb",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#weaviate-client",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#chroma",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#zilliz-milvustwo-sdk-node",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F247"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#orama-orama",
          "label": [
            {
              "t": "text",
              "text": "Orama"
            }
          ]
        },
        {
          "t": "text",
          "text": ", whose count also covers full-text search, has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F128"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "In-process database",
            "PostgreSQL type adapter"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#orama-orama",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F127"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pinecone",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pgvector",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#qdrant-rest-client",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#lancedb-lancedb",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#weaviate-client",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#chroma",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#zilliz-milvustwo-sdk-node",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F247"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "orama-orama",
          "name": [
            {
              "t": "fact",
              "fact": "F127"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/oramasearch/orama"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@orama/orama"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/oramasearch/docs/main/content/docs/orama-js/search/vector-search.mdx"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/oramasearch/docs/main/content/docs/orama-js/search/vector-search.mdx",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F127"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/joybro/obsidian-similar-notes",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F143"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "async init(\n    vectorSize: number,\n    vaultId: string,\n    loadExistingData: boolean\n): Promise<void> {\n    this.vectorSize = vectorSize;\n    this.db = null;\n    this.pathsWithoutTitleChunk = [];\n    this.schema = {\n        path: \"string\",\n        pathHash: \"string\",\n        title: \"string\",\n        embedding: `vector[${this.vectorSize}]`,\n        lastUpdated: \"number\",\n        content: \"string\",\n        chunkIndex: \"number\",\n        totalChunks: \"number\",\n    } as const;\n\n    try {\n        // Initialize IndexedDB storage with vault-specific ID\n        this.storage = new IndexedDBChunkStorage();\n        await this.storage.init(vaultId);\n\n        if (!loadExistingData) {\n            // Reindex scenario: clear IndexedDB to start fresh\n            await this.storage.clear();\n            log.info(\"Cleared IndexedDB for reindexing\");\n        }\n\n        // Create empty Orama database\n        const db = create({\n            schema: this.schema,\n        });\n        this.db = db;\n\n        if (loadExistingData) {\n            // Load data from IndexedDB in batches\n            log.info(\"Loading chunks from IndexedDB...\");\n            let loadedCount = 0;\n            const bodyPaths = new Set<string>();\n            const titledPaths = new Set<string>();\n            await this.storage.loadInBatches(\n                100,\n                async (batch) => {\n                    for (const chunk of batch) {\n                        (chunk.chunkIndex < 0 ? titledPaths : bodyPaths).add(\n                            chunk.path\n                        );\n                    }\n                    await insertMultiple(db, batch as Doc[]);\n                },\n                (processed, total) => {\n                    loadedCount = processed;\n                    if (processed % 500 === 0 || processed === total) {\n                        log.info(\n                            `Loaded ${processed}/${total} chunks from IndexedDB`\n                        );\n                    }\n                }\n            );\n\n            log.info(\n                `Successfully loaded ${loadedCount} chunks from IndexedDB`\n            );\n            this.pathsWithoutTitleChunk = [...bodyPaths].filter(\n                (path) => !titledPaths.has(path)\n            );\n        } else {\n            log.info(\"Starting with empty database for reindexing\");\n        }\n    } catch (error) {\n        log.error(\"Failed to initialize database\", error);\n        throw error;\n    }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/joybro/obsidian-similar-notes/blob/78944243e60f69548228c9d7d8e87823e2d52087/src/adapter/orama/OramaDatabase.ts#L45",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F142"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40orama/orama%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F127"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { create, insert, search } from \"@orama/orama\";\nconst db = create({ schema: { text: \"string\", embedding: \"vector[3]\" } });\nawait insert(db, { id: \"doc-1\", text: \"Example document\", embedding: [1, 0, 0] });\nconst result = await search(db, {\n  mode: \"vector\", vector: { property: \"embedding\", value: [1, 0, 0] },\n});\nconsole.log(result.hits);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/oramasearch/docs/main/content/docs/orama-js/search/vector-search.mdx",
                  "label": [
                    {
                      "t": "text",
                      "text": "vector-search.mdx"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F132"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pinecone",
          "name": [
            {
              "t": "fact",
              "fact": "F145"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pinecone-io/pinecone-ts-client"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@pinecone-database/pinecone"
            },
            {
              "label": "Docs",
              "href": "https://sdk.pinecone.io/typescript/classes/Pinecone.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F11"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://sdk.pinecone.io/typescript/classes/Pinecone.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F145"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/langchain-ai/langchainjs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F159"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "protected async _runPineconeQuery(\n  query: number[],\n  k: number,\n  filter?: PineconeMetadata,\n  options?: { includeValues: boolean }\n) {\n  if (filter && this.filter) {\n    throw new Error(\"cannot provide both `filter` and `this.filter`\");\n  }\n  let _filter = filter ?? this.filter;\n\n  let optionsNamespace = this.namespace ?? \"\";\n  if (_filter && \"namespace\" in _filter) {\n    optionsNamespace = _filter.namespace;\n    delete _filter.namespace;\n  }\n\n  if (Object.keys(_filter ?? {}).length === 0) {\n    _filter = undefined;\n  }\n\n  const namespace = this.pineconeIndex.namespace(optionsNamespace ?? \"\");\n\n  const results = await namespace.query({\n    includeMetadata: true,\n    topK: k,\n    vector: query,\n    filter: _filter,\n    ...options,\n  });\n  return results;\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/langchain-ai/langchainjs/blob/20a9abea23ffacf4ae8dc9a7aeec217143bbdeb6/libs/providers/langchain-pinecone/src/vectorstores.ts#L385",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F158"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20application%20%40pinecone-database/pinecone%20vector%20database%20collection%20index%20metadata%20filtered%20query%20SDK&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F145"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { Pinecone } from \"@pinecone-database/pinecone\";\nconst client = new Pinecone();\nconsole.log(await client.listIndexes());\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://sdk.pinecone.io/typescript/classes/Pinecone.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F150"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pgvector",
          "name": [
            {
              "t": "fact",
              "fact": "F161"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pgvector/pgvector-node"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/pgvector"
            },
            {
              "label": "Docs",
              "href": "https://github.com/pgvector/pgvector-node/blob/v0.3.1/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F168"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/pgvector/pgvector-node/blob/v0.3.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F161"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mdn/yari",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export async function updateEmbeddings(\n  directory: string,\n  updateFormatting: boolean,\n  usePlainHtml: boolean\n) {\n  if (!OPENAI_KEY || !PG_URI) {\n    throw Error(\"Please set these environment variables: OPENAI_KEY, PG_URI\");\n  }\n\n  // Postgres.\n  const pgClient = new pg.Client({\n    connectionString: PG_URI,\n  });\n\n  await pgClient.connect();\n  await pgClient.query(\"CREATE EXTENSION IF NOT EXISTS vector\");\n  await pgvector.registerType(pgClient);\n\n  // Open AI.\n  const openai = new OpenAI({\n    apiKey: OPENAI_KEY,\n  });\n\n  const createEmbedding = async (input: string, model: string) => {\n    let embeddingResponse: OpenAI.Embeddings.CreateEmbeddingResponse;\n    try {\n      embeddingResponse = await openai.embeddings.create({\n        model,\n        input,\n      });\n    } catch ({ error: { message, type }, status }: any) {\n      console.error(\n        `[!] Failed to create embedding (${status}): ${type} - ${message}`\n      );\n      // Try again with trimmed content.\n      embeddingResponse = await openai.embeddings.create({\n        model,\n        input: input.substring(0, 15000),\n      });\n    }\n\n    const {\n      data: [{ embedding }],\n      usage: { total_tokens },\n    } = embeddingResponse;\n\n    return {\n      total_tokens,\n      embedding,\n    };\n  };\n\n  console.log(`Retrieving all indexed documents...`);\n  const existingDocs = await fetchAllExistingDocs(pgClient);\n  console.log(`-> Done.`);\n\n  const existingDocByUrl = new Map<string, IndexedDoc>(\n    existingDocs.map((doc) => [doc.mdn_url, doc])\n  );\n\n  console.log(`Determining changed and deleted documents...`);\n\n  const seenUrls = new Set<string>();\n  const updates: Doc[] = [];\n  const formattingUpdates: FormattingUpdate[] = [];\n  const embeddingUpdates: EmbeddingUpdate[] = [];\n\n  for await (const { mdn_url, title, title_short, markdown, text } of builtDocs(\n    directory,\n    usePlainHtml\n  )) {\n    seenUrls.add(mdn_url);\n\n    // Check for existing document in DB and compare checksums.\n    const existingDoc = existingDocByUrl.get(mdn_url);\n\n    const text_hash = createHash(\"sha256\").update(text).digest(\"base64\");\n    const markdown_hash = createHash(\"sha256\")\n      .update(markdown)\n      .digest(\"base64\");\n\n    if (existingDoc?.text_hash !== text_hash) {\n      // Document added or content changed => (re)generate embeddings.\n      updates.push({\n        mdn_url,\n        title,\n        title_short,\n        markdown,\n        markdown_hash,\n        text,\n        text_hash,\n      });\n    } else {\n      if (updateFormatting || existingDoc?.markdown_hash !== markdown_hash) {\n        // Document formatting changed => update markdown.\n        formattingUpdates.push({\n          mdn_url,\n          title,\n          title_short,\n          markdown,\n          markdown_hash,\n        });\n      }\n\n      if (\n        !existingDoc.has_embedding ||\n        !existingDoc.has_embedding_next !== !EMBEDDING_MODEL_NEXT\n      ) {\n        // Embedding missing => add embeddings.\n        const { has_embedding, has_embedding_next } = existingDoc;\n        embeddingUpdates.push({\n          mdn_url,\n          text,\n          has_embedding,\n          has_embedding_next,\n        });\n      }\n    }\n  }\n\n  console.log(\n    `-> ${updates.length} (${formattingUpdates.length}) of ${seenUrls.size} documents were changed or added (or formatted).`\n  );\n  if (embeddingUpdates.length > 0) {\n    console.log(\n      `-> ${embeddingUpdates.length} documents have outdated embeddings.`\n    );\n  }\n\n  const deletions: IndexedDoc[] = [...existingDocByUrl.entries()]\n    .filter(([key]) => !seenUrls.has(key))\n    .map(([, value]) => value);\n  console.log(\n    `-> ${deletions.length} of ${existingDocs.length} indexed documents were deleted (or moved).`\n  );\n\n  if (\n    updates.length > 0 ||\n    formattingUpdates.length > 0 ||\n    embeddingUpdates.length > 0\n  ) {\n    console.log(`Applying updates...`);\n    for (const {\n      mdn_url,\n      title,\n      title_short,\n      markdown,\n      markdown_hash,\n      text,\n      text_hash,\n    } of updates) {\n      try {\n        console.log(`-> [${mdn_url}] Updating document...`);\n\n        // Embedding for full document.\n        const [{ total_tokens, embedding }, embedding_next] = await Promise.all(\n          [\n            createEmbedding(text, EMBEDDING_MODEL),\n            EMBEDDING_MODEL_NEXT && EMBEDDING_MODEL_NEXT !== EMBEDDING_MODEL\n              ? createEmbedding(text, EMBEDDING_MODEL_NEXT).then(\n                  ({ embedding }) => embedding\n                )\n              : null,\n          ]\n        );\n\n        // Create/update document record.\n        const query = {\n          name: \"upsert-embedding-doc\",\n          text: `\n            INSERT INTO mdn_doc_macro(\n                    mdn_url,\n                    title,\n                    title_short,\n                    markdown,\n                    markdown_hash,\n                    token_count,\n                    embedding,\n                    embedding_next,\n                    text_hash\n                )\n            VALUES($1, $2, $3, $4, $5, $6, $7, $8, $9) ON CONFLICT (mdn_url) DO\n            UPDATE\n            SET mdn_url = $1,\n                title = $2,\n                title_short = $3,\n                markdown = $4,\n                markdown_hash = $5,\n                token_count = $6,\n                embedding = $7,\n                embedding_next = $8,\n                text_hash = $9\n          `,\n          values: [\n            mdn_url,\n            title,\n            title_short,\n            markdown,\n            markdown_hash,\n            total_tokens,\n            pgvector.toSql(embedding),\n            pgvector.toSql(embedding_next ?? embedding),\n            text_hash,\n          ],\n          rowMode: \"array\",\n        };\n\n        await pgClient.query(query);\n      } catch (err: any) {\n        console.error(`!> [${mdn_url}] Failed to update document.`);\n        const context = err?.response?.data ?? err?.response ?? err;\n        console.error(context);\n      }\n    }\n\n    for (const {\n      mdn_url,\n      title,\n      title_short,\n      markdown,\n      markdown_hash,\n    } of formattingUpdates) {\n      try {\n        console.log(\n          `-> [${mdn_url}] Updating document without generating new embedding...`\n        );\n\n        // Create/update document record.\n        const query = {\n          name: \"upsert-doc\",\n          text: `\n            INSERT INTO mdn_doc_macro(mdn_url, title, title_short, markdown, markdown_hash)\n            VALUES($1, $2, $3, $4, $5) ON CONFLICT (mdn_url) DO\n            UPDATE\n            SET mdn_url = $1,\n                title = $2,\n                title_short = $3,\n                markdown = $4,\n                markdown_hash = $5\n          `,\n          values: [mdn_url, title, title_short, markdown, markdown_hash],\n          rowMode: \"array\",\n        };\n\n        await pgClient.query(query);\n      } catch (err: any) {\n        console.error(`!> [${mdn_url}] Failed to update document.`);\n        const context = err?.response?.data ?? err?.response ?? err;\n        console.error(context);\n      }\n    }\n\n    for (const {\n      mdn_url,\n      text,\n      has_embedding,\n      has_embedding_next,\n    } of embeddingUpdates) {\n      try {\n        console.log(`-> [${mdn_url}] Updating embeddings...`);\n\n        if (!has_embedding) {\n          const { total_tokens, embedding } = await createEmbedding(\n            text,\n            EMBEDDING_MODEL\n          );\n\n          const query = {\n            name: \"upsert-doc-embedding\",\n            text: \"UPDATE mdn_doc_macro SET total_tokens = $2, embedding = $3 WHERE mdn_url = $1\",\n            values: [\n              mdn_url,\n              total_tokens,\n              embedding ? pgvector.toSql(embedding) : null,\n            ],\n            rowMode: \"array\",\n          };\n\n          await pgClient.query(query);\n        }\n\n        if (!has_embedding_next) {\n          const embedding = EMBEDDING_MODEL_NEXT\n            ? (await createEmbedding(text, EMBEDDING_MODEL_NEXT)).embedding\n            : null;\n\n          const query = {\n            name: \"upsert-doc-embedding-next\",\n            text: \"UPDATE mdn_doc_macro SET embedding_next = $2 WHERE mdn_url = $1\",\n            values: [mdn_url, embedding ? pgvector.toSql(embedding) : null],\n            rowMode: \"array\",\n          };\n\n          await pgClient.query(query);\n        }\n      } catch (err: any) {\n        console.error(`!> [${mdn_url}] Failed to add embeddings.`);\n        const context = err?.response?.data ?? err?.response ?? err;\n        console.error(context);\n      }\n    }\n\n    console.log(`-> Done.`);\n  }\n\n  if (deletions.length > 0) {\n    console.log(`Applying deletions...`);\n    for (const { id, mdn_url } of deletions) {\n      console.log(`-> [${mdn_url}] Deleting indexed document...`);\n      const query = {\n        name: \"delete-doc\",\n        text: `DELETE from mdn_doc_macro WHERE id = $1`,\n        values: [id],\n        rowMode: \"array\",\n      };\n\n      await pgClient.query(query);\n    }\n    console.log(`-> Done.`);\n  }\n  pgClient.end();\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mdn/yari/blob/ab93f163ac378bded4c4dafac7a2f79db24b3ec1/scripts/ai-help-macros.ts#L62",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pgvector%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F161"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import pg from \"pg\";\nimport pgvector from \"pgvector/pg\";\nconst client = new pg.Client({ connectionString: process.env.DATABASE_URL });\nawait client.connect();\nawait pgvector.registerTypes(client);\nconst result = await client.query(\"SELECT $1::vector AS embedding\", [pgvector.toSql([1, 2, 3])]);\nconsole.log(result.rows[0].embedding);\nawait client.end();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/pgvector/pgvector-node/blob/v0.3.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F166"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "qdrant-rest-client",
          "name": [
            {
              "t": "fact",
              "fact": "F179"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/qdrant/qdrant-js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@qdrant/js-client-rest"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/qdrant/qdrant-js/v1.20.0/packages/js-client-rest/src/qdrant-client.ts"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F37"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/qdrant/qdrant-js/v1.20.0/packages/js-client-rest/src/qdrant-client.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/langchain-ai/langchainjs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "async ensureCollection() {\n  const response = await this.client.getCollections();\n\n  const collectionNames = response.collections.map(\n    (collection) => collection.name\n  );\n\n  if (!collectionNames.includes(this.collectionName)) {\n    const collectionConfig = this.collectionConfig ?? {\n      vectors: {\n        size: (await this.embeddings.embedQuery(\"test\")).length,\n        distance: \"Cosine\",\n      },\n    };\n    await this.client.createCollection(this.collectionName, collectionConfig);\n  }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/langchain-ai/langchainjs/blob/20a9abea23ffacf4ae8dc9a7aeec217143bbdeb6/libs/providers/langchain-qdrant/src/vectorstores.ts#L321",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20application%20%40qdrant/js-client-rest%20vector%20database%20collection%20index%20metadata%20filtered%20query%20SDK&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { QdrantClient } from \"@qdrant/js-client-rest\";\nconst client = new QdrantClient({ url: \"http://localhost:6333\" });\nconsole.log(await client.getCollections());\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/qdrant/qdrant-js/v1.20.0/packages/js-client-rest/src/qdrant-client.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "qdrant-client.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "lancedb-lancedb",
          "name": [
            {
              "t": "fact",
              "fact": "F195"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/lancedb/lancedb"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@lancedb/lancedb"
            },
            {
              "label": "Docs",
              "href": "https://lancedb.com/docs/quickstart/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F202"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://lancedb.com/docs/quickstart/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Mintplex-Labs/anything-llm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "async similarityResponse({\n  client,\n  namespace,\n  queryVector,\n  similarityThreshold = 0.25,\n  topN = 4,\n  filterIdentifiers = [],\n}) {\n  const collection = await client.openTable(namespace);\n  const result = {\n    contextTexts: [],\n    sourceDocuments: [],\n    scores: [],\n  };\n\n  const response = await collection\n    .vectorSearch(queryVector)\n    .distanceType(\"cosine\")\n    .limit(topN)\n    .toArray();\n\n  response.forEach((item) => {\n    if (this.distanceToSimilarity(item._distance) < similarityThreshold)\n      return;\n    const { vector: _, ...rest } = item;\n    if (filterIdentifiers.includes(sourceIdentifier(rest))) {\n      this.logger(\n        \"A source was filtered from context as it's parent document is pinned.\"\n      );\n      return;\n    }\n\n    result.contextTexts.push(rest.text);\n    result.sourceDocuments.push({\n      ...rest,\n      score: this.distanceToSimilarity(item._distance),\n    });\n    result.scores.push(this.distanceToSimilarity(item._distance));\n  });\n\n  return result;\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Mintplex-Labs/anything-llm/blob/194b8f03c5cf21ab4620a6c991ff3f6688c00a80/server/utils/vectorDbProviders/lance/index.js#L189",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40lancedb/lancedb%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { connect } from \"@lancedb/lancedb\";\nconst db = await connect(\"./library-vectors\");\nconst table = await db.createTable(\"library_starter\", [\n  { id: \"doc-1\", text: \"Example document\", vector: [1, 0, 0] },\n]);\nconsole.log(table.name);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://lancedb.com/docs/quickstart/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F200"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "weaviate-client",
          "name": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/weaviate/typescript-client"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/weaviate-client"
            },
            {
              "label": "Docs",
              "href": "https://registry.npmjs.org/weaviate-client/latest"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F220"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/weaviate-client/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F213"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/langchain-ai/langchainjs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "async hybridSearch(\n  query: string,\n  options?: HybridOptions<undefined, undefined, undefined> & {\n    filter?: FilterValue;\n  }\n): Promise<Document[]> {\n  const collection = this.client.collections.get(this.indexName);\n  let query_vector: number[] | undefined;\n  if (!options?.vector) {\n    query_vector = await this.embeddings.embedQuery(query);\n  }\n\n  const options_with_vector = {\n    ...(options ?? {}),\n    filters: options?.filters ?? options?.filter,\n    vector: options?.vector || query_vector,\n    returnMetadata: [\n      \"score\",\n      ...((options?.returnMetadata as MetadataKeys) || []),\n    ] as MetadataKeys,\n  };\n  let result;\n  if (this.tenant) {\n    result = await collection.withTenant(this.tenant).query.hybrid(query, {\n      ...options_with_vector,\n    });\n  } else {\n    result = await collection.query.hybrid(query, {\n      ...options_with_vector,\n    });\n  }\n  const documents: Document[] = [];\n\n  for (const data of result.objects) {\n    const { properties = {}, metadata = {} } = data ?? {};\n    const { [this.textKey]: text, ...rest } = properties;\n\n    documents.push(\n      new Document({\n        pageContent: String(text ?? \"\"),\n        metadata: {\n          ...rest,\n          ...metadata,\n        },\n        id: data.uuid,\n      })\n    );\n  }\n  return documents;\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/langchain-ai/langchainjs/blob/c66870ea8ebf9e3b0794ab8d969b25dfb189f2de/libs/providers/langchain-weaviate/src/vectorstores.ts#L360",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F228"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=weaviate-client%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F213"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { connectToLocal } from \"weaviate-client\";\nconst client = await connectToLocal();\ntry {\n  console.log(await client.getMeta());\n} finally {\n  await client.close();\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://app.unpkg.com/weaviate-client@3.15.3/files/dist/node/esm/index.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F218"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "chroma",
          "name": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/chroma-core/chroma"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/chromadb"
            },
            {
              "label": "Docs",
              "href": "https://docs.trychroma.com/reference/js/collection"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F61"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.trychroma.com/reference/js/collection",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F231"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mem0ai/mem0",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F245"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "async search(\n  query: number[],\n  topK: number = 5,\n  filters?: SearchFilters,\n): Promise<VectorStoreResult[]> {\n  const collection = await this.getCollection();\n  const where = ChromaDB.generateWhereClause(filters);\n  const results = await collection.query({\n    queryEmbeddings: [query],\n    nResults: topK,\n    where: where as any,\n  });\n  return this.parseOutput(results);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mem0ai/mem0/blob/f1791daa86d469249c9b002f62644d58a1eb96a0/mem0-ts/src/oss/src/vector_stores/chroma.ts#L163",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20application%20chromadb%20vector%20database%20collection%20index%20metadata%20filtered%20query%20SDK&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F231"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { ChromaClient } from \"chromadb\";\nconst client = new ChromaClient({ host: \"localhost\", port: 8000 });\nconsole.log(await client.heartbeat());\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.trychroma.com/reference/js/collection",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting-started.mdx"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "zilliz-milvustwo-sdk-node",
          "name": [
            {
              "t": "fact",
              "fact": "F247"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/milvus-io/milvus-sdk-node"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@zilliz/milvus2-sdk-node"
            },
            {
              "label": "Docs",
              "href": "https://registry.npmjs.org/%40zilliz%2Fmilvus2-sdk-node/latest"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F254"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/%40zilliz%2Fmilvus2-sdk-node/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F247"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mem0ai/mem0",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F263"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "async search(\n  query: number[],\n  topK: number = 5,\n  filters?: SearchFilters,\n): Promise<VectorStoreResult[]> {\n  const filter = this.createFilter(filters);\n  const req: Record<string, any> = {\n    collection_name: this.collectionName,\n    data: [query],\n    limit: topK,\n    filter,\n    output_fields: [\"*\"],\n  };\n  // A BM25 collection has both a dense `vectors` and a sparse `sparse` field,\n  // so anns_field is ambiguous unless we name the dense one explicitly.\n  if (this.hasBm25Schema) req.anns_field = \"vectors\";\n  const res = await this.client.search(req);\n  return this.parseHits(res?.results || []);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mem0ai/mem0/blob/ca2abca2b884e038d3e525070e79d3057ef2012c/mem0-ts/src/oss/src/vector_stores/milvus.ts#L317",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F262"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40zilliz/milvus2-sdk-node%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F247"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { MilvusClient } from \"@zilliz/milvus2-sdk-node\";\nconst client = new MilvusClient({ address: \"localhost:19530\" });\nconsole.log(await client.showCollections());\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/%40zilliz%2Fmilvus2-sdk-node/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F252"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript vector database library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#pinecone",
          "label": [
            {
              "t": "text",
              "text": "Pinecone"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits teams that want a managed vector service. "
        },
        {
          "t": "link",
          "href": "#pgvector",
          "label": [
            {
              "t": "text",
              "text": "pgvector-node"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits apps that already store data in PostgreSQL. "
        },
        {
          "t": "link",
          "href": "#orama-orama",
          "label": [
            {
              "t": "text",
              "text": "Orama"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#lancedb-lancedb",
          "label": [
            {
              "t": "text",
              "text": "LanceDB"
            }
          ]
        },
        {
          "t": "text",
          "text": " suit embedded search that runs inside the application."
        }
      ]
    },
    {
      "q": "What is a vector database?",
      "a": [
        {
          "t": "text",
          "text": "A vector database stores embeddings and returns the stored items nearest to a query embedding. An embedding is a list of numbers that a model produces to represent the meaning of text or images."
        }
      ]
    },
    {
      "q": "What is Qdrant?",
      "a": [
        {
          "t": "link",
          "href": "#qdrant-rest-client",
          "label": [
            {
              "t": "text",
              "text": "Qdrant"
            }
          ]
        },
        {
          "t": "text",
          "text": " is an open-source vector search engine. Its JavaScript REST client manages collections and runs vector queries with payload filters."
        }
      ]
    },
    {
      "q": "What is LanceDB?",
      "a": [
        {
          "t": "link",
          "href": "#lancedb-lancedb",
          "label": [
            {
              "t": "text",
              "text": "LanceDB"
            }
          ]
        },
        {
          "t": "text",
          "text": " is an embedded vector database that keeps tables of records on local disk or object storage. Its Node.js package runs inside the application process."
        }
      ]
    },
    {
      "q": "What is pgvector?",
      "a": [
        {
          "t": "text",
          "text": "pgvector is a PostgreSQL extension that adds a vector column type and nearest-neighbor search. "
        },
        {
          "t": "link",
          "href": "#pgvector",
          "label": [
            {
              "t": "text",
              "text": "pgvector-node"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds support for that type in Node.js, Deno, and Bun."
        }
      ]
    },
    {
      "q": "Pinecone vs Qdrant: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#pinecone",
          "label": [
            {
              "t": "text",
              "text": "Pinecone"
            }
          ]
        },
        {
          "t": "text",
          "text": " runs only as a managed cloud service. "
        },
        {
          "t": "link",
          "href": "#qdrant-rest-client",
          "label": [
            {
              "t": "text",
              "text": "Qdrant"
            }
          ]
        },
        {
          "t": "text",
          "text": " is open source and runs self-hosted or as a managed cloud."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, @pinecone-database/pinecone",
      "display": "Pinecone",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, @pinecone-database/pinecone",
      "display": "4.1M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, @pinecone-database/pinecone",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, @pinecone-database/pinecone",
      "display": "9.2.0",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, @pinecone-database/pinecone",
      "display": "v9.2.0",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, @pinecone-database/pinecone",
      "display": "279",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Upserts vectors, @pinecone-database/pinecone",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Vector similarity search, @pinecone-database/pinecone",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Metadata filters, @pinecone-database/pinecone",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Install, @pinecone-database/pinecone",
      "display": "npm install @pinecone-database/pinecone",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "What it does, @pinecone-database/pinecone",
      "display": "Provides typed APIs for Pinecone indexes, document records, and vector queries.",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths lead, @pinecone-database/pinecone",
      "display": "Scopes data by namespace",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths, @pinecone-database/pinecone",
      "display": "Select a namespace before querying or updating its records.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, @pinecone-database/pinecone",
      "display": "Accepts vectors or hosted embeddings",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, @pinecone-database/pinecone",
      "display": "Bring numeric vectors or use a supported hosted embedding model.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations lead, @pinecone-database/pinecone",
      "display": "Vector metadata excludes nested objects",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations, @pinecone-database/pinecone",
      "display": "Use flat key-value pairs for legacy vector-index metadata.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, @pinecone-database/pinecone",
      "display": "Document searches rank one signal",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, @pinecone-database/pinecone",
      "display": "Fuse separate ranked lists to combine several ranking signals.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Quickstart, @pinecone-database/pinecone",
      "display": "import { Pinecone } from '@pinecone-database/pinecone';\n\n// 1. Instantiate the Pinecone client\n// Option A: Pass API key directly\nconst pc = new Pinecone({ apiKey: 'YOUR_API_KEY' });\n\n// Option B: Use environment variable (PINECONE_API_KEY)\n// const pc = new Pinecone();\n\n// 2. Create a serverless index\nconst indexModel = await pc.indexes.create({\n  name: 'example-index',\n  schema: {\n    fields: {\n      _values: { type: 'dense_vector', dimension: 8, metric: 'cosine' },\n    },\n  },\n  deployment: { deploymentType: 'managed', cloud: 'aws', region: 'us-east-1' },\n  waitUntilReady: true,\n});\n\n// 3. Target the index\nconst index = pc.index({ host: indexModel.host });\n\n// 4. Upsert vectors with metadata\nawait index.upsert({\n  records: [\n    {\n      id: 'vec1',\n      values: [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8], // dimension matches the index (8)\n      metadata: { genre: 'drama', year: 2020 },\n    },\n    {\n      id: 'vec2',\n      values: [0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9],\n      metadata: { genre: 'action', year: 2021 },\n    },\n  ],\n});\n\n// 5. Query the index\nconst queryResponse = await index.query({\n  vector: [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8], // ... query vector\n  topK: 3,\n  includeMetadata: true,\n});\n\nconsole.log(queryResponse);\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function, @pinecone-database/pinecone",
      "display": "protected async _runPineconeQuery(\n    query: number[],\n    k: number,\n    filter?: PineconeMetadata,\n    options?: { includeValues: boolean }\n  ) {\n    if (filter && this.filter) {\n      throw new Error(\"cannot provide both `filter` and `this.filter`\");\n    }\n    let _filter = filter ?? this.filter;\n\n    let optionsNamespace = this.namespace ?? \"\";\n    if (_filter && \"namespace\" in _filter) {\n      optionsNamespace = _filter.namespace;\n      delete _filter.namespace;\n    }\n\n    if (Object.keys(_filter ?? {}).length === 0) {\n      _filter = undefined;\n    }\n\n    const namespace = this.pineconeIndex.namespace(optionsNamespace ?? \"\");\n\n    const results = await namespace.query({\n      includeMetadata: true,\n      topK: k,\n      vector: query,\n      filter: _filter,\n      ...options,\n    });\n    return results;\n  }\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function reference, @pinecone-database/pinecone",
      "display": "vectorstores.ts · _runPineconeQuery()",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project repository, @pinecone-database/pinecone",
      "display": "langchain-ai/langchainjs",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project stars, langchain-ai/langchainjs",
      "display": "18.4K",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project push date, langchain-ai/langchainjs",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Library name, @qdrant/js-client-rest",
      "display": "Qdrant REST client",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Monthly downloads, @qdrant/js-client-rest",
      "display": "3.7M",
      "asOf": "2026-11-15"
    },
    "F28": {
      "label": "License, @qdrant/js-client-rest",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Package release, @qdrant/js-client-rest",
      "display": "1.20.0",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Undated package release, @qdrant/js-client-rest",
      "display": "v1.20.0",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Repository stars, @qdrant/js-client-rest",
      "display": "473",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Upserts vectors, @qdrant/js-client-rest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Vector similarity search, @qdrant/js-client-rest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Metadata filters, @qdrant/js-client-rest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Hybrid search, @qdrant/js-client-rest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, @qdrant/js-client-rest",
      "display": "npm install @qdrant/js-client-rest",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, @qdrant/js-client-rest",
      "display": "Provides a JavaScript REST client for the Qdrant vector search engine.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, @qdrant/js-client-rest",
      "display": "Searches vectors with payload filters",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, @qdrant/js-client-rest",
      "display": "Apply record conditions alongside a vector query.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, @qdrant/js-client-rest",
      "display": "Combines multiple retrieval stages",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, @qdrant/js-client-rest",
      "display": "Fuse dense and sparse results or rerank prefetched candidates.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, @qdrant/js-client-rest",
      "display": "Vector fields need matching dimensions",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, @qdrant/js-client-rest",
      "display": "Match stored vectors to their configured size and distance metric.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Quickstart, @qdrant/js-client-rest",
      "display": "import { QdrantClient } from \"@qdrant/js-client-rest\";\n\nconst client = new QdrantClient({ host: \"localhost\", port: 6333 });\n\n\nawait client.createCollection(\"test_collection\", {\n  vectors: { size: 4, distance: \"Dot\" },\n});\n\n\nconst operationInfo = await client.upsert(\"test_collection\", {\n  wait: true,\n  points: [\n    { id: 1, vector: [0.05, 0.61, 0.76, 0.74], payload: { city: \"Berlin\" } },\n    { id: 2, vector: [0.19, 0.81, 0.75, 0.11], payload: { city: \"London\" } },\n    { id: 3, vector: [0.36, 0.55, 0.47, 0.94], payload: { city: \"Moscow\" } },\n    { id: 4, vector: [0.18, 0.01, 0.85, 0.80], payload: { city: \"New York\" } },\n    { id: 5, vector: [0.24, 0.18, 0.22, 0.44], payload: { city: \"Beijing\" } },\n    { id: 6, vector: [0.35, 0.08, 0.11, 0.44], payload: { city: \"Mumbai\" } },\n  ],\n});\n\nconsole.debug(operationInfo);\n\n\nlet searchResult = await client.query(\n    \"test_collection\", {\n    query: [0.2, 0.1, 0.9, 0.7],\n    limit: 3\n});\n\nconsole.debug(searchResult.points);\n\n\nsearchResult = await client.query(\"test_collection\", {\n    query: [0.2, 0.1, 0.9, 0.7],\n    filter: {\n        must: [{ key: \"city\", match: { value: \"London\" } }],\n    },\n    with_payload: true,\n    limit: 3,\n});\n\nconsole.debug(searchResult);\n\n",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project function, @qdrant/js-client-rest",
      "display": "async ensureCollection() {\n    const response = await this.client.getCollections();\n\n    const collectionNames = response.collections.map(\n      (collection) => collection.name\n    );\n\n    if (!collectionNames.includes(this.collectionName)) {\n      const collectionConfig = this.collectionConfig ?? {\n        vectors: {\n          size: (await this.embeddings.embedQuery(\"test\")).length,\n          distance: \"Cosine\",\n        },\n      };\n      await this.client.createCollection(this.collectionName, collectionConfig);\n    }\n  }\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function reference, @qdrant/js-client-rest",
      "display": "vectorstores.ts · ensureCollection()",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project repository, @qdrant/js-client-rest",
      "display": "langchain-ai/langchainjs",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project stars, langchain-ai/langchainjs",
      "display": "18.4K",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project push date, langchain-ai/langchainjs",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Library name, chromadb",
      "display": "Chroma",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Monthly downloads, chromadb",
      "display": "1.1M",
      "asOf": "2026-11-15"
    },
    "F52": {
      "label": "License, chromadb",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Package release, chromadb",
      "display": "3.5.0",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Undated package release, chromadb",
      "display": "v3.5.0",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Repository stars, chromadb",
      "display": "29.7K",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Upserts vectors, chromadb",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Vector similarity search, chromadb",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Metadata filters, chromadb",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Hybrid search, chromadb",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Install, chromadb",
      "display": "npm install chromadb @chroma-core/default-embed",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "What it does, chromadb",
      "display": "Provides a JavaScript interface for Chroma collections.",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths lead, chromadb",
      "display": "Stores documents with their embeddings",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths, chromadb",
      "display": "Keep IDs, documents, and metadata alongside indexed vectors.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, chromadb",
      "display": "Offers reusable embedding functions",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, chromadb",
      "display": "Attach an embedding function or supply embeddings directly.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations lead, chromadb",
      "display": "Hybrid search requires Chroma Cloud",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations, chromadb",
      "display": "Use collection.query for ordinary local vector search.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations lead, chromadb",
      "display": "Query vectors must match dimensions",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations, chromadb",
      "display": "Use the same embedding dimensions as the collection.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Quickstart, chromadb",
      "display": "    import { ChromaClient } from \"chromadb\";\n    const client = new ChromaClient();\n\n    // switch `createCollection` to `getOrCreateCollection` to avoid creating a new collection every time\n    const collection = await client.getOrCreateCollection({\n      name: \"my_collection\",\n    });\n\n    // switch `addRecords` to `upsertRecords` to avoid adding the same documents every time\n    await collection.upsert({\n      documents: [\n        \"This is a document about pineapple\",\n        \"This is a document about oranges\",\n      ],\n      ids: [\"id1\", \"id2\"],\n    });\n\n    const results = await collection.query({\n      queryTexts: [\"This is a query document about florida\"], // Chroma will embed this for you\n      nResults: 2, // how many results to return\n    });\n\n    console.log(results);\n",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project function, chromadb",
      "display": "async search(\n    query: number[],\n    topK: number = 5,\n    filters?: SearchFilters,\n  ): Promise<VectorStoreResult[]> {\n    const collection = await this.getCollection();\n    const where = ChromaDB.generateWhereClause(filters);\n    const results = await collection.query({\n      queryEmbeddings: [query],\n      nResults: topK,\n      where: where as any,\n    });\n    return this.parseOutput(results);\n  }\n",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project function reference, chromadb",
      "display": "chroma.ts · search()",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project repository, chromadb",
      "display": "mem0ai/mem0",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project stars, mem0ai/mem0",
      "display": "69.1K",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project push date, mem0ai/mem0",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Library name, @weaviate/node",
      "display": "Weaviate Node client",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Monthly downloads, @weaviate/node",
      "display": "1.1K",
      "asOf": "2026-11-15"
    },
    "F78": {
      "label": "License, @weaviate/node",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Package release, @weaviate/node",
      "display": "3.15.5",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Undated package release, @weaviate/node",
      "display": "v3.15.5",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Repository stars, @weaviate/node",
      "display": "101",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Vector similarity search, @weaviate/node",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Metadata filters, @weaviate/node",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Hybrid search, @weaviate/node",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Install, @weaviate/node",
      "display": "npm install @weaviate/node",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "What it does, @weaviate/node",
      "display": "Provides Node.js access to a Weaviate instance over REST and gRPC.",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths lead, @weaviate/node",
      "display": "Combines keyword and vector retrieval",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths, @weaviate/node",
      "display": "Use hybrid search to balance exact terms against semantic matches.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, @weaviate/node",
      "display": "Filters object properties during searches",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, @weaviate/node",
      "display": "Apply property conditions to the collection query.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "limitations lead, @weaviate/node",
      "display": "Browser apps need another client",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "limitations, @weaviate/node",
      "display": "Use @weaviate/web for browser and edge deployments.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, @weaviate/node",
      "display": "Named vectors require target selection",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, @weaviate/node",
      "display": "Specify the target vector when searching a collection with named vectors.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Quickstart, @weaviate/node",
      "display": "import weaviate from '@weaviate/node';\n\nconst client = await weaviate.connectToLocal();\nconst collection = client.collections.use('Article');\nconst result = await collection.query.nearText('vector databases', { limit: 3 });\nawait client.close();\n",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Developer need",
      "display": "Payload-filtered vector collections",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Why choose @qdrant/js-client-rest",
      "display": "vector queries constrained by stored payload fields",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need in introduction",
      "display": "payload-filtered vector collections",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need",
      "display": "Managed indexes and namespace APIs",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Why choose @pinecone-database/pinecone",
      "display": "record operations scoped to a namespace",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need in introduction",
      "display": "managed indexes and namespace APIs",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "Built-in keyword and vector fusion",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose @weaviate/node",
      "display": "hybrid retrieval through a collection query",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "built-in keyword and vector fusion",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need",
      "display": "Documents with embedding functions",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Why choose chromadb",
      "display": "an embedding function paired with collection records",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need in introduction",
      "display": "documents with embedding functions",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Page introduction",
      "display": "JavaScript vector database libraries let application developers store and search vector data.",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "FAQ: Does installing one of these SDKs create a running vector database?",
      "display": "The Qdrant REST client connects to a separately running Qdrant service.",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "FAQ: Does installing one of these SDKs create a running vector database?",
      "display": "The Weaviate Node package connects to an existing Weaviate instance over REST and gRPC.",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "FAQ: Must applications generate every embedding themselves?",
      "display": "Pinecone supports bringing numeric vectors or using integrated hosted embedding models.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "FAQ: Must applications generate every embedding themselves?",
      "display": "Chroma can embed documents with a configured embedding function or accept supplied embeddings.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Can Qdrant filter metadata while searching vectors?",
      "display": "Conditions can constrain payload fields and point IDs while searching or retrieving points.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Can Qdrant combine dense and sparse retrieval?",
      "display": "Its query API supports hybrid and multi-stage searches; prefetch retrieves candidates before the main query is applied.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Why must Qdrant vector dimensions match collection settings?",
      "display": "Each vector field uses its configured dimensionality and metric; named vectors can have separate requirements.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Can Pinecone vector metadata hold nested objects?",
      "display": "Legacy vector-index metadata uses flat key-value pairs; nested objects are not supported there.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Does a Pinecone upsert merge with an existing record?",
      "display": "Vector upsert replaces records sharing the same ID.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Does a Pinecone upsert merge with an existing record?",
      "display": "For document updates that change only part of a document, use update rather than upsert.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Do all Pinecone retrieval signals rank together in one request?",
      "display": "Current document search ranks by one scoring type per request; separate searches can be combined with reciprocal rank fusion.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Which Weaviate JavaScript package should new Node applications use?",
      "display": "Use @weaviate/node for Node applications and @weaviate/web for browsers or edge runtimes; weaviate-client is retained during a transition period.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Is ordinary Weaviate hybrid search limited to its Query Agent?",
      "display": "The collection hybrid API directly combines vector and keyword results with configurable fusion weights.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Is ordinary Weaviate hybrid search limited to its Query Agent?",
      "display": "A collection with named vectors must specify its target vector for the hybrid query.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Can a local Chroma query use the Cloud Search API?",
      "display": "Search API is currently available only in Chroma Cloud; single-node support is planned.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Can a local Chroma query use the Cloud Search API?",
      "display": "Ordinary query/get operations can still filter collection records by metadata.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Why can a Chroma embedding query fail after ingestion?",
      "display": "The query embedding must have the same dimensionality as stored collection embeddings.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Why can a Chroma embedding query fail after ingestion?",
      "display": "The own starter installs the default embedding function package alongside chromadb; the embedding provider remains a separate runtime requirement.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "Library name, @orama/orama",
      "display": "Orama",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "Monthly downloads, @orama/orama",
      "display": "7.9M",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "License, @orama/orama",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Package release, @orama/orama",
      "display": "3.1.18",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Package release date, @orama/orama",
      "display": "Dec 2025",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Install, @orama/orama",
      "display": "npm install @orama/orama@3.1.18",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Quickstart, @orama/orama",
      "display": "import { create, insert, search } from \"@orama/orama\";\nconst db = create({ schema: { text: \"string\", embedding: \"vector[3]\" } });\nawait insert(db, { id: \"doc-1\", text: \"Example document\", embedding: [1, 0, 0] });\nconst result = await search(db, {\n  mode: \"vector\", vector: { property: \"embedding\", value: [1, 0, 0] },\n});\nconsole.log(result.hits);\n",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Official description, @orama/orama",
      "display": "Performs vector search natively as an embedded database.",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Quickstart source file, @orama/orama",
      "display": "search/vector-search.mdx",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Repository stars, @orama/orama",
      "display": "10.6K",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "In-process database, @orama/orama",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "PostgreSQL type adapter, @orama/orama",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Deployment and interface, @orama/orama",
      "display": "In-process Orama typed-record engine; explicit save/load or persistence plugin for durable state.",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Setup and model boundary, @orama/orama",
      "display": "Compatible JavaScript/TypeScript ESM runtime. The3-dimensional vectors are explicit toy data, not generated embeddings; real insert/query vectors must share dimensions and embedding model. Base store is in memory; persistent storage requires explicit save/load integration or the separate persistence plugin.",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Project function, @orama/orama",
      "display": "async init(\n    vectorSize: number,\n    vaultId: string,\n    loadExistingData: boolean\n): Promise<void> {\n    this.vectorSize = vectorSize;\n    this.db = null;\n    this.pathsWithoutTitleChunk = [];\n    this.schema = {\n        path: \"string\",\n        pathHash: \"string\",\n        title: \"string\",\n        embedding: `vector[${this.vectorSize}]`,\n        lastUpdated: \"number\",\n        content: \"string\",\n        chunkIndex: \"number\",\n        totalChunks: \"number\",\n    } as const;\n\n    try {\n        // Initialize IndexedDB storage with vault-specific ID\n        this.storage = new IndexedDBChunkStorage();\n        await this.storage.init(vaultId);\n\n        if (!loadExistingData) {\n            // Reindex scenario: clear IndexedDB to start fresh\n            await this.storage.clear();\n            log.info(\"Cleared IndexedDB for reindexing\");\n        }\n\n        // Create empty Orama database\n        const db = create({\n            schema: this.schema,\n        });\n        this.db = db;\n\n        if (loadExistingData) {\n            // Load data from IndexedDB in batches\n            log.info(\"Loading chunks from IndexedDB...\");\n            let loadedCount = 0;\n            const bodyPaths = new Set<string>();\n            const titledPaths = new Set<string>();\n            await this.storage.loadInBatches(\n                100,\n                async (batch) => {\n                    for (const chunk of batch) {\n                        (chunk.chunkIndex < 0 ? titledPaths : bodyPaths).add(\n                            chunk.path\n                        );\n                    }\n                    await insertMultiple(db, batch as Doc[]);\n                },\n                (processed, total) => {\n                    loadedCount = processed;\n                    if (processed % 500 === 0 || processed === total) {\n                        log.info(\n                            `Loaded ${processed}/${total} chunks from IndexedDB`\n                        );\n                    }\n                }\n            );\n\n            log.info(\n                `Successfully loaded ${loadedCount} chunks from IndexedDB`\n            );\n            this.pathsWithoutTitleChunk = [...bodyPaths].filter(\n                (path) => !titledPaths.has(path)\n            );\n        } else {\n            log.info(\"Starting with empty database for reindexing\");\n        }\n    } catch (error) {\n        log.error(\"Failed to initialize database\", error);\n        throw error;\n    }\n}\n",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Project source file, @orama/orama",
      "display": "src/adapter/orama/OramaDatabase.ts",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project full_name, @orama/orama",
      "display": "joybro/obsidian-similar-notes",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project stargazers_count, @orama/orama",
      "display": "109",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Library name, @pinecone-database/pinecone",
      "display": "Pinecone TypeScript SDK",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Monthly downloads, @pinecone-database/pinecone",
      "display": "4.2M",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "License, @pinecone-database/pinecone",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Package release, @pinecone-database/pinecone",
      "display": "9.2.0",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Package release date, @pinecone-database/pinecone",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Install, @pinecone-database/pinecone",
      "display": "npm install @pinecone-database/pinecone@9.2.0",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Quickstart, @pinecone-database/pinecone",
      "display": "import { Pinecone } from \"@pinecone-database/pinecone\";\nconst client = new Pinecone();\nconsole.log(await client.listIndexes());\n",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Repository stars, @pinecone-database/pinecone",
      "display": "279",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "In-process database, @pinecone-database/pinecone",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "PostgreSQL type adapter, @pinecone-database/pinecone",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Deployment and interface, @pinecone-database/pinecone",
      "display": "Pinecone Index API and account infrastructure; vector and document APIs depend on the configured index.",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Setup and model boundary, @pinecone-database/pinecone",
      "display": "Node.js ESM, PINECONE_API_KEY set as a server secret, authorized Pinecone account/network access. This first call lists existing indexes; it does not create a billed index or assume a particular vector dimension/model.",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Project function, @pinecone-database/pinecone",
      "display": "protected async _runPineconeQuery(\n  query: number[],\n  k: number,\n  filter?: PineconeMetadata,\n  options?: { includeValues: boolean }\n) {\n  if (filter && this.filter) {\n    throw new Error(\"cannot provide both `filter` and `this.filter`\");\n  }\n  let _filter = filter ?? this.filter;\n\n  let optionsNamespace = this.namespace ?? \"\";\n  if (_filter && \"namespace\" in _filter) {\n    optionsNamespace = _filter.namespace;\n    delete _filter.namespace;\n  }\n\n  if (Object.keys(_filter ?? {}).length === 0) {\n    _filter = undefined;\n  }\n\n  const namespace = this.pineconeIndex.namespace(optionsNamespace ?? \"\");\n\n  const results = await namespace.query({\n    includeMetadata: true,\n    topK: k,\n    vector: query,\n    filter: _filter,\n    ...options,\n  });\n  return results;\n}\n",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Project source file, @pinecone-database/pinecone",
      "display": "libs/providers/langchain-pinecone/src/vectorstores.ts",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project full_name, @pinecone-database/pinecone",
      "display": "langchain-ai/langchainjs",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Project stargazers_count, @pinecone-database/pinecone",
      "display": "18.4K",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Library name, pgvector",
      "display": "pgvector-node",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Monthly downloads, pgvector",
      "display": "4.1M",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "License, pgvector",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Package release, pgvector",
      "display": "0.3.1",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Package release date, pgvector",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Install, pgvector",
      "display": "npm install pgvector@0.3.1 pg",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Quickstart, pgvector",
      "display": "import pg from \"pg\";\nimport pgvector from \"pgvector/pg\";\nconst client = new pg.Client({ connectionString: process.env.DATABASE_URL });\nawait client.connect();\nawait pgvector.registerTypes(client);\nconst result = await client.query(\"SELECT $1::vector AS embedding\", [pgvector.toSql([1, 2, 3])]);\nconsole.log(result.rows[0].embedding);\nawait client.end();\n",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Official description, pgvector",
      "display": "Adds pgvector support to Node.js, Deno, and Bun.",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Quickstart source file, pgvector",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Repository stars, pgvector",
      "display": "446",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "In-process database, pgvector",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "PostgreSQL type adapter, pgvector",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Deployment and interface, pgvector",
      "display": "Dedicated PostgreSQL vector/halfvec/sparsevec type adapters for Node drivers/ORMs; the database/extension executes SQL.",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Setup and model boundary, pgvector",
      "display": "Node.js ESM and node-postgres peer driver; DATABASE_URL points to a reachable PostgreSQL database where the pgvector extension is already installed/enabled. Creating the extension is an administrator/setup prerequisite, not silently executed here. Returns the supplied toy vector through the registered PostgreSQL type parser.",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Project function, pgvector",
      "display": "export async function updateEmbeddings(\n  directory: string,\n  updateFormatting: boolean,\n  usePlainHtml: boolean\n) {\n  if (!OPENAI_KEY || !PG_URI) {\n    throw Error(\"Please set these environment variables: OPENAI_KEY, PG_URI\");\n  }\n\n  // Postgres.\n  const pgClient = new pg.Client({\n    connectionString: PG_URI,\n  });\n\n  await pgClient.connect();\n  await pgClient.query(\"CREATE EXTENSION IF NOT EXISTS vector\");\n  await pgvector.registerType(pgClient);\n\n  // Open AI.\n  const openai = new OpenAI({\n    apiKey: OPENAI_KEY,\n  });\n\n  const createEmbedding = async (input: string, model: string) => {\n    let embeddingResponse: OpenAI.Embeddings.CreateEmbeddingResponse;\n    try {\n      embeddingResponse = await openai.embeddings.create({\n        model,\n        input,\n      });\n    } catch ({ error: { message, type }, status }: any) {\n      console.error(\n        `[!] Failed to create embedding (${status}): ${type} - ${message}`\n      );\n      // Try again with trimmed content.\n      embeddingResponse = await openai.embeddings.create({\n        model,\n        input: input.substring(0, 15000),\n      });\n    }\n\n    const {\n      data: [{ embedding }],\n      usage: { total_tokens },\n    } = embeddingResponse;\n\n    return {\n      total_tokens,\n      embedding,\n    };\n  };\n\n  console.log(`Retrieving all indexed documents...`);\n  const existingDocs = await fetchAllExistingDocs(pgClient);\n  console.log(`-> Done.`);\n\n  const existingDocByUrl = new Map<string, IndexedDoc>(\n    existingDocs.map((doc) => [doc.mdn_url, doc])\n  );\n\n  console.log(`Determining changed and deleted documents...`);\n\n  const seenUrls = new Set<string>();\n  const updates: Doc[] = [];\n  const formattingUpdates: FormattingUpdate[] = [];\n  const embeddingUpdates: EmbeddingUpdate[] = [];\n\n  for await (const { mdn_url, title, title_short, markdown, text } of builtDocs(\n    directory,\n    usePlainHtml\n  )) {\n    seenUrls.add(mdn_url);\n\n    // Check for existing document in DB and compare checksums.\n    const existingDoc = existingDocByUrl.get(mdn_url);\n\n    const text_hash = createHash(\"sha256\").update(text).digest(\"base64\");\n    const markdown_hash = createHash(\"sha256\")\n      .update(markdown)\n      .digest(\"base64\");\n\n    if (existingDoc?.text_hash !== text_hash) {\n      // Document added or content changed => (re)generate embeddings.\n      updates.push({\n        mdn_url,\n        title,\n        title_short,\n        markdown,\n        markdown_hash,\n        text,\n        text_hash,\n      });\n    } else {\n      if (updateFormatting || existingDoc?.markdown_hash !== markdown_hash) {\n        // Document formatting changed => update markdown.\n        formattingUpdates.push({\n          mdn_url,\n          title,\n          title_short,\n          markdown,\n          markdown_hash,\n        });\n      }\n\n      if (\n        !existingDoc.has_embedding ||\n        !existingDoc.has_embedding_next !== !EMBEDDING_MODEL_NEXT\n      ) {\n        // Embedding missing => add embeddings.\n        const { has_embedding, has_embedding_next } = existingDoc;\n        embeddingUpdates.push({\n          mdn_url,\n          text,\n          has_embedding,\n          has_embedding_next,\n        });\n      }\n    }\n  }\n\n  console.log(\n    `-> ${updates.length} (${formattingUpdates.length}) of ${seenUrls.size} documents were changed or added (or formatted).`\n  );\n  if (embeddingUpdates.length > 0) {\n    console.log(\n      `-> ${embeddingUpdates.length} documents have outdated embeddings.`\n    );\n  }\n\n  const deletions: IndexedDoc[] = [...existingDocByUrl.entries()]\n    .filter(([key]) => !seenUrls.has(key))\n    .map(([, value]) => value);\n  console.log(\n    `-> ${deletions.length} of ${existingDocs.length} indexed documents were deleted (or moved).`\n  );\n\n  if (\n    updates.length > 0 ||\n    formattingUpdates.length > 0 ||\n    embeddingUpdates.length > 0\n  ) {\n    console.log(`Applying updates...`);\n    for (const {\n      mdn_url,\n      title,\n      title_short,\n      markdown,\n      markdown_hash,\n      text,\n      text_hash,\n    } of updates) {\n      try {\n        console.log(`-> [${mdn_url}] Updating document...`);\n\n        // Embedding for full document.\n        const [{ total_tokens, embedding }, embedding_next] = await Promise.all(\n          [\n            createEmbedding(text, EMBEDDING_MODEL),\n            EMBEDDING_MODEL_NEXT && EMBEDDING_MODEL_NEXT !== EMBEDDING_MODEL\n              ? createEmbedding(text, EMBEDDING_MODEL_NEXT).then(\n                  ({ embedding }) => embedding\n                )\n              : null,\n          ]\n        );\n\n        // Create/update document record.\n        const query = {\n          name: \"upsert-embedding-doc\",\n          text: `\n            INSERT INTO mdn_doc_macro(\n                    mdn_url,\n                    title,\n                    title_short,\n                    markdown,\n                    markdown_hash,\n                    token_count,\n                    embedding,\n                    embedding_next,\n                    text_hash\n                )\n            VALUES($1, $2, $3, $4, $5, $6, $7, $8, $9) ON CONFLICT (mdn_url) DO\n            UPDATE\n            SET mdn_url = $1,\n                title = $2,\n                title_short = $3,\n                markdown = $4,\n                markdown_hash = $5,\n                token_count = $6,\n                embedding = $7,\n                embedding_next = $8,\n                text_hash = $9\n          `,\n          values: [\n            mdn_url,\n            title,\n            title_short,\n            markdown,\n            markdown_hash,\n            total_tokens,\n            pgvector.toSql(embedding),\n            pgvector.toSql(embedding_next ?? embedding),\n            text_hash,\n          ],\n          rowMode: \"array\",\n        };\n\n        await pgClient.query(query);\n      } catch (err: any) {\n        console.error(`!> [${mdn_url}] Failed to update document.`);\n        const context = err?.response?.data ?? err?.response ?? err;\n        console.error(context);\n      }\n    }\n\n    for (const {\n      mdn_url,\n      title,\n      title_short,\n      markdown,\n      markdown_hash,\n    } of formattingUpdates) {\n      try {\n        console.log(\n          `-> [${mdn_url}] Updating document without generating new embedding...`\n        );\n\n        // Create/update document record.\n        const query = {\n          name: \"upsert-doc\",\n          text: `\n            INSERT INTO mdn_doc_macro(mdn_url, title, title_short, markdown, markdown_hash)\n            VALUES($1, $2, $3, $4, $5) ON CONFLICT (mdn_url) DO\n            UPDATE\n            SET mdn_url = $1,\n                title = $2,\n                title_short = $3,\n                markdown = $4,\n                markdown_hash = $5\n          `,\n          values: [mdn_url, title, title_short, markdown, markdown_hash],\n          rowMode: \"array\",\n        };\n\n        await pgClient.query(query);\n      } catch (err: any) {\n        console.error(`!> [${mdn_url}] Failed to update document.`);\n        const context = err?.response?.data ?? err?.response ?? err;\n        console.error(context);\n      }\n    }\n\n    for (const {\n      mdn_url,\n      text,\n      has_embedding,\n      has_embedding_next,\n    } of embeddingUpdates) {\n      try {\n        console.log(`-> [${mdn_url}] Updating embeddings...`);\n\n        if (!has_embedding) {\n          const { total_tokens, embedding } = await createEmbedding(\n            text,\n            EMBEDDING_MODEL\n          );\n\n          const query = {\n            name: \"upsert-doc-embedding\",\n            text: \"UPDATE mdn_doc_macro SET total_tokens = $2, embedding = $3 WHERE mdn_url = $1\",\n            values: [\n              mdn_url,\n              total_tokens,\n              embedding ? pgvector.toSql(embedding) : null,\n            ],\n            rowMode: \"array\",\n          };\n\n          await pgClient.query(query);\n        }\n\n        if (!has_embedding_next) {\n          const embedding = EMBEDDING_MODEL_NEXT\n            ? (await createEmbedding(text, EMBEDDING_MODEL_NEXT)).embedding\n            : null;\n\n          const query = {\n            name: \"upsert-doc-embedding-next\",\n            text: \"UPDATE mdn_doc_macro SET embedding_next = $2 WHERE mdn_url = $1\",\n            values: [mdn_url, embedding ? pgvector.toSql(embedding) : null],\n            rowMode: \"array\",\n          };\n\n          await pgClient.query(query);\n        }\n      } catch (err: any) {\n        console.error(`!> [${mdn_url}] Failed to add embeddings.`);\n        const context = err?.response?.data ?? err?.response ?? err;\n        console.error(context);\n      }\n    }\n\n    console.log(`-> Done.`);\n  }\n\n  if (deletions.length > 0) {\n    console.log(`Applying deletions...`);\n    for (const { id, mdn_url } of deletions) {\n      console.log(`-> [${mdn_url}] Deleting indexed document...`);\n      const query = {\n        name: \"delete-doc\",\n        text: `DELETE from mdn_doc_macro WHERE id = $1`,\n        values: [id],\n        rowMode: \"array\",\n      };\n\n      await pgClient.query(query);\n    }\n    console.log(`-> Done.`);\n  }\n  pgClient.end();\n}\n",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Project source file, pgvector",
      "display": "scripts/ai-help-macros.ts",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Project full_name, pgvector",
      "display": "mdn/yari",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Project stargazers_count, pgvector",
      "display": "1.3K",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Library name, @qdrant/js-client-rest",
      "display": "@qdrant/js-client-rest",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Monthly downloads, @qdrant/js-client-rest",
      "display": "3.7M",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "License, @qdrant/js-client-rest",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Package release, @qdrant/js-client-rest",
      "display": "1.20.0",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Package release date, @qdrant/js-client-rest",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Install, @qdrant/js-client-rest",
      "display": "npm install @qdrant/js-client-rest@1.20.0",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Quickstart, @qdrant/js-client-rest",
      "display": "import { QdrantClient } from \"@qdrant/js-client-rest\";\nconst client = new QdrantClient({ url: \"http://localhost:6333\" });\nconsole.log(await client.getCollections());\n",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Repository stars, @qdrant/js-client-rest",
      "display": "473",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "In-process database, @qdrant/js-client-rest",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "PostgreSQL type adapter, @qdrant/js-client-rest",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Deployment and interface, @qdrant/js-client-rest",
      "display": "Qdrant server or managed deployment, reached through the selected REST client.",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Setup and model boundary, @qdrant/js-client-rest",
      "display": "Existing compatible Qdrant server at localhost:6333. Cloud/secured instances require their URL/API key and transport configuration. This lists collections; it neither starts Qdrant nor assumes an existing vector schema.",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project function, @qdrant/js-client-rest",
      "display": "async ensureCollection() {\n  const response = await this.client.getCollections();\n\n  const collectionNames = response.collections.map(\n    (collection) => collection.name\n  );\n\n  if (!collectionNames.includes(this.collectionName)) {\n    const collectionConfig = this.collectionConfig ?? {\n      vectors: {\n        size: (await this.embeddings.embedQuery(\"test\")).length,\n        distance: \"Cosine\",\n      },\n    };\n    await this.client.createCollection(this.collectionName, collectionConfig);\n  }\n}\n",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Project source file, @qdrant/js-client-rest",
      "display": "libs/providers/langchain-qdrant/src/vectorstores.ts",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Project full_name, @qdrant/js-client-rest",
      "display": "langchain-ai/langchainjs",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Project stargazers_count, @qdrant/js-client-rest",
      "display": "18.4K",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Library name, @lancedb/lancedb",
      "display": "LanceDB",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Monthly downloads, @lancedb/lancedb",
      "display": "2.4M",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "License, @lancedb/lancedb",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Package release, @lancedb/lancedb",
      "display": "0.41.0",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release date, @lancedb/lancedb",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Install, @lancedb/lancedb",
      "display": "npm install @lancedb/lancedb@0.41.0",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Quickstart, @lancedb/lancedb",
      "display": "import { connect } from \"@lancedb/lancedb\";\nconst db = await connect(\"./library-vectors\");\nconst table = await db.createTable(\"library_starter\", [\n  { id: \"doc-1\", text: \"Example document\", vector: [1, 0, 0] },\n]);\nconsole.log(table.name);\n",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Official description, @lancedb/lancedb",
      "display": "Stores records in tables inside a LanceDB database.",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Quickstart source file, @lancedb/lancedb",
      "display": "quickstart",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Repository stars, @lancedb/lancedb",
      "display": "11.9K",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "In-process database, @lancedb/lancedb",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "PostgreSQL type adapter, @lancedb/lancedb",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Deployment and interface, @lancedb/lancedb",
      "display": "Native local LanceDB connection with records/vector indexes; remote managed/enterprise roles are separate deployment choices.",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Setup and model boundary, @lancedb/lancedb",
      "display": "Supported Node.js host/native LanceDB binary and writable local directory. Use a fresh library_starter table name; existing data is not overwritten. Supplied vectors are toy data only. No separate database server or embedding service is required for this local record creation.",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Project function, @lancedb/lancedb",
      "display": "async similarityResponse({\n  client,\n  namespace,\n  queryVector,\n  similarityThreshold = 0.25,\n  topN = 4,\n  filterIdentifiers = [],\n}) {\n  const collection = await client.openTable(namespace);\n  const result = {\n    contextTexts: [],\n    sourceDocuments: [],\n    scores: [],\n  };\n\n  const response = await collection\n    .vectorSearch(queryVector)\n    .distanceType(\"cosine\")\n    .limit(topN)\n    .toArray();\n\n  response.forEach((item) => {\n    if (this.distanceToSimilarity(item._distance) < similarityThreshold)\n      return;\n    const { vector: _, ...rest } = item;\n    if (filterIdentifiers.includes(sourceIdentifier(rest))) {\n      this.logger(\n        \"A source was filtered from context as it's parent document is pinned.\"\n      );\n      return;\n    }\n\n    result.contextTexts.push(rest.text);\n    result.sourceDocuments.push({\n      ...rest,\n      score: this.distanceToSimilarity(item._distance),\n    });\n    result.scores.push(this.distanceToSimilarity(item._distance));\n  });\n\n  return result;\n}\n",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Project source file, @lancedb/lancedb",
      "display": "server/utils/vectorDbProviders/lance/index.js",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Project full_name, @lancedb/lancedb",
      "display": "Mintplex-Labs/anything-llm",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Project stargazers_count, @lancedb/lancedb",
      "display": "68.4K",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Library name, weaviate-client",
      "display": "weaviate-client",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Monthly downloads, weaviate-client",
      "display": "1.9M",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "License, weaviate-client",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Package release, weaviate-client",
      "display": "3.15.3",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Package release date, weaviate-client",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Install, weaviate-client",
      "display": "npm install weaviate-client@3.15.3",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Quickstart, weaviate-client",
      "display": "import { connectToLocal } from \"weaviate-client\";\nconst client = await connectToLocal();\ntry {\n  console.log(await client.getMeta());\n} finally {\n  await client.close();\n}\n",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Official description, weaviate-client",
      "display": "Provides a JavaScript and TypeScript client for Weaviate.",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Quickstart source file, weaviate-client",
      "display": "dist/node/esm/index.d.ts",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Repository stars, weaviate-client",
      "display": "101",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "In-process database, weaviate-client",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "PostgreSQL type adapter, weaviate-client",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Deployment and interface, weaviate-client",
      "display": "Weaviate database client distribution weaviate-client3.15.3; newer @weaviate/node3.15.5 is a distinct distribution, retained as related.",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Setup and model boundary, weaviate-client",
      "display": "Compatible local Weaviate backend with its HTTP/gRPC endpoints reachable using connectToLocal defaults. Use the appropriate documented custom/cloud factory and credentials for other deployments. No server launch, account, model, data, or SDK execution occurred.",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Project function, weaviate-client",
      "display": "async hybridSearch(\n  query: string,\n  options?: HybridOptions<undefined, undefined, undefined> & {\n    filter?: FilterValue;\n  }\n): Promise<Document[]> {\n  const collection = this.client.collections.get(this.indexName);\n  let query_vector: number[] | undefined;\n  if (!options?.vector) {\n    query_vector = await this.embeddings.embedQuery(query);\n  }\n\n  const options_with_vector = {\n    ...(options ?? {}),\n    filters: options?.filters ?? options?.filter,\n    vector: options?.vector || query_vector,\n    returnMetadata: [\n      \"score\",\n      ...((options?.returnMetadata as MetadataKeys) || []),\n    ] as MetadataKeys,\n  };\n  let result;\n  if (this.tenant) {\n    result = await collection.withTenant(this.tenant).query.hybrid(query, {\n      ...options_with_vector,\n    });\n  } else {\n    result = await collection.query.hybrid(query, {\n      ...options_with_vector,\n    });\n  }\n  const documents: Document[] = [];\n\n  for (const data of result.objects) {\n    const { properties = {}, metadata = {} } = data ?? {};\n    const { [this.textKey]: text, ...rest } = properties;\n\n    documents.push(\n      new Document({\n        pageContent: String(text ?? \"\"),\n        metadata: {\n          ...rest,\n          ...metadata,\n        },\n        id: data.uuid,\n      })\n    );\n  }\n  return documents;\n}\n",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Project source file, weaviate-client",
      "display": "libs/providers/langchain-weaviate/src/vectorstores.ts",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Project full_name, weaviate-client",
      "display": "langchain-ai/langchainjs",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Project stargazers_count, weaviate-client",
      "display": "18.4K",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Library name, chromadb",
      "display": "chromadb",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Monthly downloads, chromadb",
      "display": "1.1M",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "License, chromadb",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Package release, chromadb",
      "display": "3.5.0",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Package release date, chromadb",
      "display": "Jun 2026",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Install, chromadb",
      "display": "npm install chromadb@3.5.0",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Quickstart, chromadb",
      "display": "import { ChromaClient } from \"chromadb\";\nconst client = new ChromaClient({ host: \"localhost\", port: 8000 });\nconsole.log(await client.heartbeat());\n",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Repository stars, chromadb",
      "display": "29.7K",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "In-process database, chromadb",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "PostgreSQL type adapter, chromadb",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Deployment and interface, chromadb",
      "display": "JavaScript HTTP client to a Chroma server/cloud deployment; Python embedded PersistentClient is not inherited by this JS package.",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Setup and model boundary, chromadb",
      "display": "Node.js ESM and an existing compatible Chroma server at localhost:8000. No implicit local server launch or default embedding-model download is performed. Heartbeat tests client/server connectivity; embedding queries require compatible collection vectors/models and any configured embedding-function dependencies.",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project function, chromadb",
      "display": "async search(\n  query: number[],\n  topK: number = 5,\n  filters?: SearchFilters,\n): Promise<VectorStoreResult[]> {\n  const collection = await this.getCollection();\n  const where = ChromaDB.generateWhereClause(filters);\n  const results = await collection.query({\n    queryEmbeddings: [query],\n    nResults: topK,\n    where: where as any,\n  });\n  return this.parseOutput(results);\n}\n",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Project source file, chromadb",
      "display": "mem0-ts/src/oss/src/vector_stores/chroma.ts",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Project full_name, chromadb",
      "display": "mem0ai/mem0",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Project stargazers_count, chromadb",
      "display": "69.1K",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Library name, @zilliz/milvus2-sdk-node",
      "display": "@zilliz/milvus2-sdk-node",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Monthly downloads, @zilliz/milvus2-sdk-node",
      "display": "866.5K",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "License, @zilliz/milvus2-sdk-node",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Package release, @zilliz/milvus2-sdk-node",
      "display": "3.0.8",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Package release date, @zilliz/milvus2-sdk-node",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Install, @zilliz/milvus2-sdk-node",
      "display": "npm install @zilliz/milvus2-sdk-node@3.0.8",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Quickstart, @zilliz/milvus2-sdk-node",
      "display": "import { MilvusClient } from \"@zilliz/milvus2-sdk-node\";\nconst client = new MilvusClient({ address: \"localhost:19530\" });\nconsole.log(await client.showCollections());\n",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Official description, @zilliz/milvus2-sdk-node",
      "display": "Provides gRPC and HTTP clients for Milvus similarity search, metadata filtering, and collection management.",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Quickstart source file, @zilliz/milvus2-sdk-node",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Repository stars, @zilliz/milvus2-sdk-node",
      "display": "199",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "In-process database, @zilliz/milvus2-sdk-node",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "PostgreSQL type adapter, @zilliz/milvus2-sdk-node",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Deployment and interface, @zilliz/milvus2-sdk-node",
      "display": "Milvus/Zilliz server client; collection/data/vector/hybrid methods have their own backend/index requirements.",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Setup and model boundary, @zilliz/milvus2-sdk-node",
      "display": "Supported Node.js/gRPC host and existing compatible Milvus server at localhost:19530. Hosted or secured deployments require their endpoint/token/TLS settings. This basic catalog call does not start Milvus, create a collection, or generate embeddings; keep the client lifecycle appropriate to the host application.",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Project function, @zilliz/milvus2-sdk-node",
      "display": "async search(\n  query: number[],\n  topK: number = 5,\n  filters?: SearchFilters,\n): Promise<VectorStoreResult[]> {\n  const filter = this.createFilter(filters);\n  const req: Record<string, any> = {\n    collection_name: this.collectionName,\n    data: [query],\n    limit: topK,\n    filter,\n    output_fields: [\"*\"],\n  };\n  // A BM25 collection has both a dense `vectors` and a sparse `sparse` field,\n  // so anns_field is ambiguous unless we name the dense one explicitly.\n  if (this.hasBm25Schema) req.anns_field = \"vectors\";\n  const res = await this.client.search(req);\n  return this.parseHits(res?.results || []);\n}\n",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Project source file, @zilliz/milvus2-sdk-node",
      "display": "mem0-ts/src/oss/src/vector_stores/milvus.ts",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Project full_name, @zilliz/milvus2-sdk-node",
      "display": "mem0ai/mem0",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Project stargazers_count, @zilliz/milvus2-sdk-node",
      "display": "69.1K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript vector database libraries Qdrant Pinecone Weaviate Chroma code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
