ARANGODB_PASSWORD. Defaults to “”.
Returns
An arango.database.StandardDatabase.
generate_schema(sample_ratio: float = 0) → Dict[str, List[Dict[str, Any]]][source]¶
Generates the schema of the ArangoDB Database and returns it
User can specify a sample_ratio (0 to 1) to determine the
ratio of documents/edges used (in relation to the Collection size)
to render each Collection Schema.
query(query: str, top_k: Optional[int] = None, **kwargs: Any) → List[Dict[str, Any]][source]¶
Query the ArangoDB database.
set_db(db: Any) → None[source]¶
set_schema(schema: Optional[Dict[str, Any]] = None) → None[source]¶
Set the schema of the ArangoDB Database.
Auto-generates Schema if schema is None.
Examples using ArangoGraph¶
ArangoDB QA chain