opea-project / GenAIComps

GenAI components at micro-service level; GenAI service composer to create mega-service
Apache License 2.0
78 stars 140 forks source link

ArangoDB: Chathistory #920

Closed ajaykallepalli closed 1 week ago

ajaykallepalli commented 1 week ago

Steps to replicate microservice:

  1. Set environment variables:
    
    export ARANGODB_HOST=localhost
    export ARANGODB_PORT=8529
    export ARANGODB_USERNAME=root
    export ARANGODB_PASSWORD=test
    export DB_NAME=OPEA
    export COLLECTION_NAME=ChatHistory
    export PYTHONPATH={Path to base of directory}
2. Setup docker network

docker network create chathistory-network

3. Start ArangoDB server with network

docker create --name arango-vector \ --network chathistory-network \ -p 8529:8529 \ -e ARANGO_ROOT_PASSWORD=test \ jbajic/arangodb-arm:vector-index-preview

4. Create Chathistory service

From the repository base directory

docker build -t opea/chathistory-arango-server:latest -f comps/chathistory/arango/Dockerfile .

5. Start Chathistory service

docker run -p 6012:6012 \ --network chathistory-network \
-e http_proxy=$http_proxy \ -e https_proxy=$https_proxy \ -e no_proxy=$no_proxy \ -e ARANGODB_HOST=host.docker.internal \ -e ARANGODB_PORT=${ARANGODB_PORT} \ -e DB_NAME=${DB_NAME} \ -e COLLECTION_NAME=${COLLECTION_NAME} \ -e ARANGODB_USERNAME=${ARANGODB_USERNAME} \ -e ARANGODB_PASSWORD=${ARANGODB_PASSWORD} \ opea/chathistory-arango-server:latest


6. The Readme file should include the curl commands to run (replacing host_ip with localhost)
chickenrae commented 1 week ago

@ajaykallepalli Hello there, I'm relatively new to using Github at this level, but I hope you can help, it looks as though you did a bunch of work but closed this before it could be merged, could you let me know what the story is?

ajaykallepalli commented 1 week ago

Hi @chickenrae, new to this as well. Meant to open this PR on the ArangoDB main branch but instead opened it on the OPEA branch instead. Will be doing an internal review before creating a PR for OPEA. Sorry for any confusion.