{"id":13593051,"url":"https://github.com/onepointconsulting/elasticsearch-agent","last_synced_at":"2025-04-09T02:32:12.895Z","repository":{"id":199737495,"uuid":"703154005","full_name":"onepointconsulting/elasticsearch-agent","owner":"onepointconsulting","description":"ElasticSearch agent based on ElasticSearch, LangChain and ChatGPT 4","archived":false,"fork":false,"pushed_at":"2023-10-17T17:43:35.000Z","size":189,"stargazers_count":34,"open_issues_count":1,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-02T16:46:34.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onepointconsulting.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-10-10T17:38:31.000Z","updated_at":"2024-07-11T14:30:35.000Z","dependencies_parsed_at":"2024-01-06T20:46:11.051Z","dependency_job_id":null,"html_url":"https://github.com/onepointconsulting/elasticsearch-agent","commit_stats":null,"previous_names":["onepointconsulting/elasticsearch-agent"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onepointconsulting%2Felasticsearch-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onepointconsulting%2Felasticsearch-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onepointconsulting%2Felasticsearch-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onepointconsulting%2Felasticsearch-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onepointconsulting","download_url":"https://codeload.github.com/onepointconsulting/elasticsearch-agent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223356553,"owners_count":17132159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T16:01:16.098Z","updated_at":"2024-11-06T14:31:06.720Z","avatar_url":"https://github.com/onepointconsulting.png","language":"Python","funding_links":[],"categories":["Langchain Agents","Tools","工具"],"sub_categories":["Agents","代理"],"readme":"# Elasticsearch Langchain Agent\n\nThis project uses ElasticSearch together with LangChain and ChatGPT 4 to build an agent with which you can ask intelligent questions on\ntop of an ElasticSearch cluster.\n\n## Setup\n\nWe suggest to use [Conda](https://docs.conda.io/en/latest/) to manage the virtual environment and then install poetry.\n\n```\nconda activate base\nconda remove -n elastic_search_playground --all\nconda create -n elastic_search_playground python=3.11\nconda activate elastic_search_playground\npip install poetry\n``````\n\n## Installation\n\n```\npoetry install\n```\n\n## Configuration\n\nThe configuration should be saved in a `.env` file.\n\n```\nOPENAI_API_KEY=\u003ckey\u003e\nOPENAI_MODEL=gpt-4-0613\n# OPENAI_MODEL=gpt-3.5-turbo-16k-0613\nREQUEST_TIMEOUT=300\nLANGCHAIN_CACHE=false\nCHATGPT_STREAMING=false\nLLM_VERBOSE=true\n\n# Elastic Search related\nELASTIC_SERVER=https://127.0.0.1:9200\nELASTIC_USER=elastic\nELASTIC_PASSWORD=\u003cpass\u003e\nELASTIC_VERIFY_CERTIFICATES=false\n\nELASTIC_INDEX_DATA_FROM=0\nELASTIC_INDEX_DATA_SIZE=5\nELASTIC_INDEX_DATA_MAX_SIZE=50\n\nLANGCHAIN_VERBOSE=true\nAGGS_LIMIT=200\nTOKEN_LIMIT=6000\nMAX_SEARCH_RETRIES = 100\n```\n\nPlease note that the agent works best with ChatGPT 4.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonepointconsulting%2Felasticsearch-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonepointconsulting%2Felasticsearch-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonepointconsulting%2Felasticsearch-agent/lists"}