Infinity allows to create Embeddings using a MIT-licensed Embedding Server.
This notebook goes over how to use LangChain with Embeddings with the Infinity Github Project.
Imports
Option 1: Use infinity from Python
Optional: install infinity
To install infinity use the following command. For further details check out the Docs on Github. Install the torch and onnx dependencies.Option 2: Run the server, and connect via the API
Optional: Make sure to start the Infinity instance
To install infinity use the following command. For further details check out the Docs on Github.Install the infinity package
pip install -qU infinity_emb[all] Start up the server - best to be done from a separate terminal, not inside Jupyter NotebookEmbed your documents using your Infinity instance
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.