mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 16:36:21 +02:00
Sample docs loader (#365)
This commit is contained in:
parent
9e4eb634a4
commit
54e475fa3a
34 changed files with 818 additions and 56 deletions
|
|
@ -1,8 +1,9 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
"""This utility takes a knowledge core and loads it into a running TrustGraph
|
||||
through the API. The knowledge core should be in msgpack format, which is the
|
||||
default format produce by tg-save-kg-core.
|
||||
"""
|
||||
This utility takes a document embeddings core and loads it into a running
|
||||
TrustGraph through the API. The document embeddings core should be in msgpack
|
||||
format, which is the default format produce by tg-save-doc-embeds.
|
||||
"""
|
||||
|
||||
import aiohttp
|
||||
|
|
@ -174,7 +175,7 @@ async def run(running, **args):
|
|||
async def main(running):
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
prog='tg-load-kg-core',
|
||||
prog='tg-load-doc-embeds',
|
||||
description=__doc__,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue