- Ubuntu 24.04 LTS
- Python 3.10.14
git submodule update --init
pip install -r requirements.txt
export GOOGLE_APPLICATION_CREDENTIALS='{
"type": "service_account",
...
}'
export AZURE_OPENAI_ENDPOINT="https://_________.openai.azure.com/openai/deployments/fds-text-embedding-3-large/embeddings?api-version=2023-05-15"
export AZURE_OPENAI_API_KEY="..."
export OPENAI_API_KEY="..."I added the credentials copied/downloaded from Google, Azure, and Open AI.
I created a new Azure OpenAI resource (region: East US), went to the Azure OpenAI Studio, and deployed a model called text-embedding-3-large with the deployment name fds-text-embedding-3-large.
wget https://archive.apache.org/dist/tika/2.3.0/tika-server-standard-2.3.0.jar
java -jar tika-server-standard-2.3.0.jar uvicorn main:app_fastapi --host 0.0.0.0 --port 8000
http://0.0.0.0:8000/docs opens as expected.
python -m unittest discover tests/local_tests
- Before the changes: 18/18 passed
- After the changes: 18/18 passed
Thanks for this @olp-cs 🙌 !