Info
Your index contains valuable information that may be useful to retrieve for various purposes.
Our SDK provides the capability to fetch detailed information about your index, including metadata, ready and pending vectors, similarity function, and associated namespaces.
Index Info
To fetch the information about your index you can use the getInfo()
method as shown below.
That call will return an instance of Upstash\Vector\IndexInfo
.
We can use index info as follows:
You can read more about Namespaces and Similarity Functions on our docs.
Namespace Info
Namespaces also contain vectors, which may be pending indexing.
As shown above, you can fetch information about the namespaces when making a getInfo()
call on the index.
Additionally, you can use the getNamespaceInfo()
method:
The getNamespaceInfo()
call will return an instance of Upstash\Vector\NamespaceInfo
.
We can use namespace info as follows: