Noizu.Weaviate
Noizu.Weaviate is a library providing a simple wrapper around Weaviate's API calls. It handles various API features such as meta information, batch operations, backups, schema operations, nodes information, data objects, and classification.
Installation
To install Noizu.Weaviate, add the following to your mix.exs file:
defp deps do
[
{:noizu_weaviate, "~> 0.1.0"}
]
end
Then, run mix deps.get to fetch the dependencies.
Configuration
To configure the library, you need to set the Weaviate API key in your application's configuration:
config :noizu_weaviate,
weaviate_api_key: "your_api_key_here"
Replace "your_api_key_here" with your actual Weaviate API key.
Usage
Noizu.Weaviate provides modules for different Weaviate API endpoints:
- Noizu.Weaviate.Api.Meta
- Noizu.Weaviate.Api.Batch
- Noizu.Weaviate.Api.Backups
- Noizu.Weaviate.Api.Schema
- Noizu.Weaviate.Api.Nodes
- Noizu.Weaviate.Api.Objects
- Noizu.Weaviate.Api.Auth
- Noizu.Weaviate.Api.Classification
Each module corresponds to a specific functionality provided by the Weaviate API. You can use the functions in these modules to interact with the respective API endpoints.
Here's an example of using the Noizu.Weaviate.Api.Meta module to get meta information about the Weaviate instance:
alias Noizu.Weaviate.Api.Meta
{:ok, response} = Meta.get_meta_information()
Refer to the documentation for each module to learn about the available functions and their usage.
Documentation
You can generate the documentation for this project using ExDoc. Run mix docs and open the doc/index.html file in your browser.
Tests
To run the tests for this project, use the command mix test.
Contributing
If you'd like to contribute to the development of Noizu.Weaviate, please submit a pull request with your changes or open an issue to discuss your proposed changes.
License
Noizu.Weaviate is released under the MIT License.