Overview
TheEgnyteRetriever class helps you search and retrieve documents from Egnyte using hybrid search capabilities that combine semantic and keyword search. This retriever is fully compliant with LangChain standards and supports both synchronous and asynchronous operations.
Integration details
Bring-your-own data (i.e., index and search a custom corpus of documents):| Retriever | Self-host | Cloud offering | Package |
|---|---|---|---|
| EgnyteRetriever | ❌ | ✅ | egnyte-langchain-connector |
Setup
In order to use the Egnyte package, you will need:- An Egnyte account — If you are not a current Egnyte customer or want to test outside of your production Egnyte instance, you can use a free developer account.
- An Egnyte app — This is configured in the developer console, and must have the appropriate scopes enabled.
- The app must be enabled by the administrator. For free developer accounts, this is whoever signed up for the account.
Credentials
For these examples, we will use Bearer token authentication with an Egnyte user token. To generate a user token:- Register for a developer account at https://developers.egnyte.com/member/register
- Generate a user token following the Public API Authentication guide
- Important: Use the scope
Egnyte.aiwhen generating the token
Installation
This retriever lives in theegnyte-langchain-connector package:
Instantiation
Now we can instantiate our retriever:Usage
Basic search
Advanced Search with Options
For more granular search, you can useEgnyteSearchOptions to filter results by folder path, date range, and more: