├── .devcontainer └── devcontainer.json ├── .env.sample ├── .gitignore ├── .gitmodules ├── .vscode ├── launch.json └── settings.json ├── CONTRIBUTING.md ├── Data_ingestion ├── backend.ipynb ├── data_ingest.ipynb ├── embedding.sql ├── embedding_job.sql ├── poetry.lock ├── poetry.toml ├── pyproject.toml ├── run_headless_data_ingest.py ├── test.ipynb └── test_vector_search.sql ├── Dockerfile ├── Dockerfile.u22 ├── LICENSE.md ├── README.md ├── azure.yaml ├── data ├── cases_final.csv ├── final_communities.csv ├── final_community_reports.csv ├── final_documents.csv └── final_text_units.csv ├── demo ├── graph-query.sql ├── graphrag_query.sql ├── semantic-ranker.sql └── vector-search.sql ├── docker-compose.yaml ├── docs └── assets │ ├── graph_rag_arch.png │ └── info_pipeline.png ├── infra ├── backend-dashboard.bicep ├── core │ ├── ai │ │ └── cognitiveservices.bicep │ ├── database │ │ └── postgresql │ │ │ └── flexibleserver.bicep │ ├── host │ │ ├── container-app-upsert.bicep │ │ ├── container-app.bicep │ │ ├── container-apps-environment.bicep │ │ ├── container-apps.bicep │ │ └── container-registry.bicep │ ├── monitor │ │ ├── applicationinsights.bicep │ │ ├── loganalytics.bicep │ │ └── monitoring.bicep │ └── security │ │ ├── registry-access.bicep │ │ └── role.bicep ├── main.bicep ├── main.parameters.json └── web.bicep ├── init-postgres.sh ├── next-steps.md ├── notebook.ipynb ├── playground ├── case_graph.sql ├── case_playground_graph.ipynb ├── case_playground_graph.py ├── graph_prompt.ipynb ├── graph_prompt_v2.ipynb ├── graph_query_v2.sql ├── mluk_full_graph.py ├── mluk_graph.ipynb ├── notes.md ├── pg2_case_graph.ipynb ├── playground.sql ├── playground_case_graph_rag.sql ├── poetry.lock ├── pyproject.toml ├── reranker.sql └── saved_responses │ ├── vector_semantic_graph_rrf.md │ └── vector_semantic_rrf_with_graph.md ├── poetry.lock ├── pyproject.toml ├── requirements-dev.txt ├── sample_qa_data ├── draft_data.ipynb ├── lc_backend.ipynb ├── sample_data │ ├── chatgpt_4_results_simple.json │ ├── chatgpt_4_results_w_reranker.json │ ├── initial_context_results.json │ └── reranker_context_results.json ├── sample_question_1 │ ├── chatgpt_4_results_simple_1.json │ ├── chatgpt_4_results_w_graph_2.json │ ├── chatgpt_4_results_w_reranker_3.json │ ├── graph_context_results_4.json │ ├── initial_context_results_5.json │ └── reranker_context_results_6.json └── sample_question_2 │ ├── chatgpt_4_results_simple_1.json │ ├── chatgpt_4_results_w_reranker_2.json │ ├── initial_context_results_3.json │ └── reranker_context_results__4.json ├── scripts ├── load_python_env.sh ├── setup_openai_role.sh ├── setup_postgres_azurerole.ps1 ├── setup_postgres_azurerole.sh ├── setup_postgres_database.ps1 ├── setup_postgres_database.sh ├── setup_postgres_seeddata.ps1 └── setup_postgres_seeddata.sh └── src ├── backend ├── .dockerignore ├── Dockerfile ├── entrypoint.sh ├── fastapi_app │ ├── __init__.py │ ├── api_models.py │ ├── dependencies.py │ ├── embeddings.py │ ├── openai_clients.py │ ├── postgres_engine.py │ ├── postgres_models.py │ ├── postgres_searcher.py │ ├── prompts │ │ ├── OLD_answer copy.txt │ │ ├── answer.txt │ │ ├── query.txt │ │ ├── query_fewshots.json │ │ └── query_rewrite.txt │ ├── query_rewriter.py │ ├── rag_advanced.py │ ├── rag_base.py │ ├── rag_simple.py │ ├── routes │ │ ├── Original api_routes copy.py │ │ ├── api_routes.py │ │ └── frontend_routes.py │ ├── seed_data.json │ ├── setup_postgres_age.py │ ├── setup_postgres_azurerole.py │ ├── setup_postgres_database.py │ ├── setup_postgres_legal_database.py │ ├── setup_postgres_legal_seeddata.py │ ├── setup_postgres_legal_seeddata_msrgraphrag.py │ ├── setup_postgres_seeddata.py │ ├── test.py │ └── update_embeddings.py ├── package-lock.json ├── pyproject.toml └── static │ ├── favicon.ico │ └── index.html ├── demo_data ├── chatgpt_3_5_results_simple_demo.json ├── chatgpt_3_5_results_w_reranker_demo.json ├── initial_context_results_demo.json └── reranker_context_results_demo.json └── frontend ├── index.html ├── package-lock.json ├── package.json ├── public └── favicon.ico ├── src ├── AppStateContext │ └── AppStateContext.tsx ├── api │ ├── index.ts │ └── models.ts ├── assets │ └── github.svg ├── components │ ├── AnalysisPanel │ │ ├── AnalysisPanel.module.css │ │ ├── AnalysisPanel.tsx │ │ ├── AnalysisPanelTabs.tsx │ │ ├── GraphPanel.tsx │ │ ├── Loading.css │ │ ├── Loading.tsx │ │ ├── ThoughtProcess.tsx │ │ └── index.tsx │ ├── Answer │ │ ├── Answer.module.css │ │ ├── Answer.tsx │ │ ├── AnswerError.tsx │ │ ├── AnswerIcon.tsx │ │ ├── AnswerLoading.tsx │ │ ├── AnswerParser.tsx │ │ └── index.ts │ ├── ClearChatButton │ │ ├── ClearChatButton.module.css │ │ ├── ClearChatButton.tsx │ │ └── index.tsx │ ├── Example │ │ ├── Example.module.css │ │ ├── Example.tsx │ │ ├── ExampleList.tsx │ │ └── index.tsx │ ├── MarkdownViewer │ │ ├── MarkdownViewer.module.css │ │ ├── MarkdownViewer.tsx │ │ └── index.tsx │ ├── QuestionInput │ │ ├── QuestionInput.module.css │ │ ├── QuestionInput.tsx │ │ └── index.ts │ ├── SettingsButton │ │ ├── SettingsButton.module.css │ │ ├── SettingsButton.tsx │ │ └── index.tsx │ ├── SupportingContent │ │ ├── SupportingContent.module.css │ │ ├── SupportingContent.tsx │ │ ├── SupportingContentParser.ts │ │ └── index.ts │ ├── UserChatMessage │ │ ├── UserChatMessage.module.css │ │ ├── UserChatMessage.tsx │ │ └── index.ts │ └── VectorSettings │ │ ├── VectorSettings.module.css │ │ ├── VectorSettings.tsx │ │ └── index.ts ├── hack │ ├── graphResponse.tsx │ ├── rerankerResponse.tsx │ └── simpleResponse.tsx ├── index.css ├── index.tsx ├── pages │ ├── NoPage.tsx │ ├── chat │ │ ├── Chat original.tsx │ │ ├── Chat.module.css │ │ └── Chat.tsx │ └── layout │ │ ├── Layout.module.css │ │ └── Layout.tsx └── vite-env.d.ts ├── tsconfig.json └── vite.config.ts /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/.devcontainer/devcontainer.json -------------------------------------------------------------------------------- /.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/.env.sample -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/.gitmodules -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Data_ingestion/backend.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/Data_ingestion/backend.ipynb -------------------------------------------------------------------------------- /Data_ingestion/data_ingest.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/Data_ingestion/data_ingest.ipynb -------------------------------------------------------------------------------- /Data_ingestion/embedding.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/Data_ingestion/embedding.sql -------------------------------------------------------------------------------- /Data_ingestion/embedding_job.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/Data_ingestion/embedding_job.sql -------------------------------------------------------------------------------- /Data_ingestion/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/Data_ingestion/poetry.lock -------------------------------------------------------------------------------- /Data_ingestion/poetry.toml: -------------------------------------------------------------------------------- 1 | [virtualenvs] 2 | create = true 3 | -------------------------------------------------------------------------------- /Data_ingestion/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/Data_ingestion/pyproject.toml -------------------------------------------------------------------------------- /Data_ingestion/run_headless_data_ingest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/Data_ingestion/run_headless_data_ingest.py -------------------------------------------------------------------------------- /Data_ingestion/test.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/Data_ingestion/test.ipynb -------------------------------------------------------------------------------- /Data_ingestion/test_vector_search.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/Data_ingestion/test_vector_search.sql -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/Dockerfile -------------------------------------------------------------------------------- /Dockerfile.u22: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/Dockerfile.u22 -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/README.md -------------------------------------------------------------------------------- /azure.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/azure.yaml -------------------------------------------------------------------------------- /data/cases_final.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/data/cases_final.csv -------------------------------------------------------------------------------- /data/final_communities.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/data/final_communities.csv -------------------------------------------------------------------------------- /data/final_community_reports.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/data/final_community_reports.csv -------------------------------------------------------------------------------- /data/final_documents.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/data/final_documents.csv -------------------------------------------------------------------------------- /data/final_text_units.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/data/final_text_units.csv -------------------------------------------------------------------------------- /demo/graph-query.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/demo/graph-query.sql -------------------------------------------------------------------------------- /demo/graphrag_query.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/demo/graphrag_query.sql -------------------------------------------------------------------------------- /demo/semantic-ranker.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/demo/semantic-ranker.sql -------------------------------------------------------------------------------- /demo/vector-search.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/demo/vector-search.sql -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/docker-compose.yaml -------------------------------------------------------------------------------- /docs/assets/graph_rag_arch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/docs/assets/graph_rag_arch.png -------------------------------------------------------------------------------- /docs/assets/info_pipeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/docs/assets/info_pipeline.png -------------------------------------------------------------------------------- /infra/backend-dashboard.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/backend-dashboard.bicep -------------------------------------------------------------------------------- /infra/core/ai/cognitiveservices.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/core/ai/cognitiveservices.bicep -------------------------------------------------------------------------------- /infra/core/database/postgresql/flexibleserver.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/core/database/postgresql/flexibleserver.bicep -------------------------------------------------------------------------------- /infra/core/host/container-app-upsert.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/core/host/container-app-upsert.bicep -------------------------------------------------------------------------------- /infra/core/host/container-app.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/core/host/container-app.bicep -------------------------------------------------------------------------------- /infra/core/host/container-apps-environment.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/core/host/container-apps-environment.bicep -------------------------------------------------------------------------------- /infra/core/host/container-apps.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/core/host/container-apps.bicep -------------------------------------------------------------------------------- /infra/core/host/container-registry.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/core/host/container-registry.bicep -------------------------------------------------------------------------------- /infra/core/monitor/applicationinsights.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/core/monitor/applicationinsights.bicep -------------------------------------------------------------------------------- /infra/core/monitor/loganalytics.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/core/monitor/loganalytics.bicep -------------------------------------------------------------------------------- /infra/core/monitor/monitoring.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/core/monitor/monitoring.bicep -------------------------------------------------------------------------------- /infra/core/security/registry-access.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/core/security/registry-access.bicep -------------------------------------------------------------------------------- /infra/core/security/role.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/core/security/role.bicep -------------------------------------------------------------------------------- /infra/main.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/main.bicep -------------------------------------------------------------------------------- /infra/main.parameters.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/main.parameters.json -------------------------------------------------------------------------------- /infra/web.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/infra/web.bicep -------------------------------------------------------------------------------- /init-postgres.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/init-postgres.sh -------------------------------------------------------------------------------- /next-steps.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/next-steps.md -------------------------------------------------------------------------------- /notebook.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/notebook.ipynb -------------------------------------------------------------------------------- /playground/case_graph.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/case_graph.sql -------------------------------------------------------------------------------- /playground/case_playground_graph.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/case_playground_graph.ipynb -------------------------------------------------------------------------------- /playground/case_playground_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/case_playground_graph.py -------------------------------------------------------------------------------- /playground/graph_prompt.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/graph_prompt.ipynb -------------------------------------------------------------------------------- /playground/graph_prompt_v2.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/graph_prompt_v2.ipynb -------------------------------------------------------------------------------- /playground/graph_query_v2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/graph_query_v2.sql -------------------------------------------------------------------------------- /playground/mluk_full_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/mluk_full_graph.py -------------------------------------------------------------------------------- /playground/mluk_graph.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/mluk_graph.ipynb -------------------------------------------------------------------------------- /playground/notes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/notes.md -------------------------------------------------------------------------------- /playground/pg2_case_graph.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/pg2_case_graph.ipynb -------------------------------------------------------------------------------- /playground/playground.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/playground.sql -------------------------------------------------------------------------------- /playground/playground_case_graph_rag.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/playground_case_graph_rag.sql -------------------------------------------------------------------------------- /playground/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/poetry.lock -------------------------------------------------------------------------------- /playground/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/pyproject.toml -------------------------------------------------------------------------------- /playground/reranker.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/reranker.sql -------------------------------------------------------------------------------- /playground/saved_responses/vector_semantic_graph_rrf.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/saved_responses/vector_semantic_graph_rrf.md -------------------------------------------------------------------------------- /playground/saved_responses/vector_semantic_rrf_with_graph.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/playground/saved_responses/vector_semantic_rrf_with_graph.md -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements-dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/requirements-dev.txt -------------------------------------------------------------------------------- /sample_qa_data/draft_data.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/draft_data.ipynb -------------------------------------------------------------------------------- /sample_qa_data/lc_backend.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/lc_backend.ipynb -------------------------------------------------------------------------------- /sample_qa_data/sample_data/chatgpt_4_results_simple.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_data/chatgpt_4_results_simple.json -------------------------------------------------------------------------------- /sample_qa_data/sample_data/chatgpt_4_results_w_reranker.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_data/chatgpt_4_results_w_reranker.json -------------------------------------------------------------------------------- /sample_qa_data/sample_data/initial_context_results.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_data/initial_context_results.json -------------------------------------------------------------------------------- /sample_qa_data/sample_data/reranker_context_results.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_data/reranker_context_results.json -------------------------------------------------------------------------------- /sample_qa_data/sample_question_1/chatgpt_4_results_simple_1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_question_1/chatgpt_4_results_simple_1.json -------------------------------------------------------------------------------- /sample_qa_data/sample_question_1/chatgpt_4_results_w_graph_2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_question_1/chatgpt_4_results_w_graph_2.json -------------------------------------------------------------------------------- /sample_qa_data/sample_question_1/chatgpt_4_results_w_reranker_3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_question_1/chatgpt_4_results_w_reranker_3.json -------------------------------------------------------------------------------- /sample_qa_data/sample_question_1/graph_context_results_4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_question_1/graph_context_results_4.json -------------------------------------------------------------------------------- /sample_qa_data/sample_question_1/initial_context_results_5.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_question_1/initial_context_results_5.json -------------------------------------------------------------------------------- /sample_qa_data/sample_question_1/reranker_context_results_6.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_question_1/reranker_context_results_6.json -------------------------------------------------------------------------------- /sample_qa_data/sample_question_2/chatgpt_4_results_simple_1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_question_2/chatgpt_4_results_simple_1.json -------------------------------------------------------------------------------- /sample_qa_data/sample_question_2/chatgpt_4_results_w_reranker_2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_question_2/chatgpt_4_results_w_reranker_2.json -------------------------------------------------------------------------------- /sample_qa_data/sample_question_2/initial_context_results_3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_question_2/initial_context_results_3.json -------------------------------------------------------------------------------- /sample_qa_data/sample_question_2/reranker_context_results__4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/sample_qa_data/sample_question_2/reranker_context_results__4.json -------------------------------------------------------------------------------- /scripts/load_python_env.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/scripts/load_python_env.sh -------------------------------------------------------------------------------- /scripts/setup_openai_role.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/scripts/setup_openai_role.sh -------------------------------------------------------------------------------- /scripts/setup_postgres_azurerole.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/scripts/setup_postgres_azurerole.ps1 -------------------------------------------------------------------------------- /scripts/setup_postgres_azurerole.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/scripts/setup_postgres_azurerole.sh -------------------------------------------------------------------------------- /scripts/setup_postgres_database.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/scripts/setup_postgres_database.ps1 -------------------------------------------------------------------------------- /scripts/setup_postgres_database.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/scripts/setup_postgres_database.sh -------------------------------------------------------------------------------- /scripts/setup_postgres_seeddata.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/scripts/setup_postgres_seeddata.ps1 -------------------------------------------------------------------------------- /scripts/setup_postgres_seeddata.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/scripts/setup_postgres_seeddata.sh -------------------------------------------------------------------------------- /src/backend/.dockerignore: -------------------------------------------------------------------------------- 1 | .git* 2 | .venv/ 3 | **/*.pyc -------------------------------------------------------------------------------- /src/backend/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/Dockerfile -------------------------------------------------------------------------------- /src/backend/entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/entrypoint.sh -------------------------------------------------------------------------------- /src/backend/fastapi_app/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/__init__.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/api_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/api_models.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/dependencies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/dependencies.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/embeddings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/embeddings.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/openai_clients.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/openai_clients.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/postgres_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/postgres_engine.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/postgres_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/postgres_models.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/postgres_searcher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/postgres_searcher.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/prompts/OLD_answer copy.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/prompts/OLD_answer copy.txt -------------------------------------------------------------------------------- /src/backend/fastapi_app/prompts/answer.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/prompts/answer.txt -------------------------------------------------------------------------------- /src/backend/fastapi_app/prompts/query.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/prompts/query.txt -------------------------------------------------------------------------------- /src/backend/fastapi_app/prompts/query_fewshots.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/prompts/query_fewshots.json -------------------------------------------------------------------------------- /src/backend/fastapi_app/prompts/query_rewrite.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/prompts/query_rewrite.txt -------------------------------------------------------------------------------- /src/backend/fastapi_app/query_rewriter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/query_rewriter.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/rag_advanced.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/rag_advanced.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/rag_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/rag_base.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/rag_simple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/rag_simple.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/routes/Original api_routes copy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/routes/Original api_routes copy.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/routes/api_routes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/routes/api_routes.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/routes/frontend_routes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/routes/frontend_routes.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/seed_data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/seed_data.json -------------------------------------------------------------------------------- /src/backend/fastapi_app/setup_postgres_age.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/setup_postgres_age.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/setup_postgres_azurerole.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/setup_postgres_azurerole.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/setup_postgres_database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/setup_postgres_database.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/setup_postgres_legal_database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/setup_postgres_legal_database.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/setup_postgres_legal_seeddata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/setup_postgres_legal_seeddata.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/setup_postgres_legal_seeddata_msrgraphrag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/setup_postgres_legal_seeddata_msrgraphrag.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/setup_postgres_seeddata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/setup_postgres_seeddata.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/test.py -------------------------------------------------------------------------------- /src/backend/fastapi_app/update_embeddings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/fastapi_app/update_embeddings.py -------------------------------------------------------------------------------- /src/backend/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/package-lock.json -------------------------------------------------------------------------------- /src/backend/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/pyproject.toml -------------------------------------------------------------------------------- /src/backend/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/static/favicon.ico -------------------------------------------------------------------------------- /src/backend/static/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/backend/static/index.html -------------------------------------------------------------------------------- /src/demo_data/chatgpt_3_5_results_simple_demo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/demo_data/chatgpt_3_5_results_simple_demo.json -------------------------------------------------------------------------------- /src/demo_data/chatgpt_3_5_results_w_reranker_demo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/demo_data/chatgpt_3_5_results_w_reranker_demo.json -------------------------------------------------------------------------------- /src/demo_data/initial_context_results_demo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/demo_data/initial_context_results_demo.json -------------------------------------------------------------------------------- /src/demo_data/reranker_context_results_demo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/demo_data/reranker_context_results_demo.json -------------------------------------------------------------------------------- /src/frontend/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/index.html -------------------------------------------------------------------------------- /src/frontend/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/package-lock.json -------------------------------------------------------------------------------- /src/frontend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/package.json -------------------------------------------------------------------------------- /src/frontend/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/public/favicon.ico -------------------------------------------------------------------------------- /src/frontend/src/AppStateContext/AppStateContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/AppStateContext/AppStateContext.tsx -------------------------------------------------------------------------------- /src/frontend/src/api/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./models"; 2 | -------------------------------------------------------------------------------- /src/frontend/src/api/models.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/api/models.ts -------------------------------------------------------------------------------- /src/frontend/src/assets/github.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/assets/github.svg -------------------------------------------------------------------------------- /src/frontend/src/components/AnalysisPanel/AnalysisPanel.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/AnalysisPanel/AnalysisPanel.module.css -------------------------------------------------------------------------------- /src/frontend/src/components/AnalysisPanel/AnalysisPanel.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/AnalysisPanel/AnalysisPanel.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/AnalysisPanel/AnalysisPanelTabs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/AnalysisPanel/AnalysisPanelTabs.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/AnalysisPanel/GraphPanel.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/AnalysisPanel/GraphPanel.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/AnalysisPanel/Loading.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/AnalysisPanel/Loading.css -------------------------------------------------------------------------------- /src/frontend/src/components/AnalysisPanel/Loading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/AnalysisPanel/Loading.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/AnalysisPanel/ThoughtProcess.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/AnalysisPanel/ThoughtProcess.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/AnalysisPanel/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/AnalysisPanel/index.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/Answer/Answer.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/Answer/Answer.module.css -------------------------------------------------------------------------------- /src/frontend/src/components/Answer/Answer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/Answer/Answer.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/Answer/AnswerError.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/Answer/AnswerError.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/Answer/AnswerIcon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/Answer/AnswerIcon.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/Answer/AnswerLoading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/Answer/AnswerLoading.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/Answer/AnswerParser.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/Answer/AnswerParser.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/Answer/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/Answer/index.ts -------------------------------------------------------------------------------- /src/frontend/src/components/ClearChatButton/ClearChatButton.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/ClearChatButton/ClearChatButton.module.css -------------------------------------------------------------------------------- /src/frontend/src/components/ClearChatButton/ClearChatButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/ClearChatButton/ClearChatButton.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/ClearChatButton/index.tsx: -------------------------------------------------------------------------------- 1 | export * from "./ClearChatButton"; 2 | -------------------------------------------------------------------------------- /src/frontend/src/components/Example/Example.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/Example/Example.module.css -------------------------------------------------------------------------------- /src/frontend/src/components/Example/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/Example/Example.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/Example/ExampleList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/Example/ExampleList.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/Example/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/Example/index.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/MarkdownViewer/MarkdownViewer.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/MarkdownViewer/MarkdownViewer.module.css -------------------------------------------------------------------------------- /src/frontend/src/components/MarkdownViewer/MarkdownViewer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/MarkdownViewer/MarkdownViewer.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/MarkdownViewer/index.tsx: -------------------------------------------------------------------------------- 1 | export * from "./MarkdownViewer"; 2 | -------------------------------------------------------------------------------- /src/frontend/src/components/QuestionInput/QuestionInput.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/QuestionInput/QuestionInput.module.css -------------------------------------------------------------------------------- /src/frontend/src/components/QuestionInput/QuestionInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/QuestionInput/QuestionInput.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/QuestionInput/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./QuestionInput"; 2 | -------------------------------------------------------------------------------- /src/frontend/src/components/SettingsButton/SettingsButton.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/SettingsButton/SettingsButton.module.css -------------------------------------------------------------------------------- /src/frontend/src/components/SettingsButton/SettingsButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/SettingsButton/SettingsButton.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/SettingsButton/index.tsx: -------------------------------------------------------------------------------- 1 | export * from "./SettingsButton"; 2 | -------------------------------------------------------------------------------- /src/frontend/src/components/SupportingContent/SupportingContent.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/SupportingContent/SupportingContent.module.css -------------------------------------------------------------------------------- /src/frontend/src/components/SupportingContent/SupportingContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/SupportingContent/SupportingContent.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/SupportingContent/SupportingContentParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/SupportingContent/SupportingContentParser.ts -------------------------------------------------------------------------------- /src/frontend/src/components/SupportingContent/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./SupportingContent"; 2 | -------------------------------------------------------------------------------- /src/frontend/src/components/UserChatMessage/UserChatMessage.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/UserChatMessage/UserChatMessage.module.css -------------------------------------------------------------------------------- /src/frontend/src/components/UserChatMessage/UserChatMessage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/UserChatMessage/UserChatMessage.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/UserChatMessage/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./UserChatMessage"; 2 | -------------------------------------------------------------------------------- /src/frontend/src/components/VectorSettings/VectorSettings.module.css: -------------------------------------------------------------------------------- 1 | .container { 2 | margin-top: 10px; 3 | } 4 | -------------------------------------------------------------------------------- /src/frontend/src/components/VectorSettings/VectorSettings.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/components/VectorSettings/VectorSettings.tsx -------------------------------------------------------------------------------- /src/frontend/src/components/VectorSettings/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./VectorSettings"; 2 | -------------------------------------------------------------------------------- /src/frontend/src/hack/graphResponse.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/hack/graphResponse.tsx -------------------------------------------------------------------------------- /src/frontend/src/hack/rerankerResponse.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/hack/rerankerResponse.tsx -------------------------------------------------------------------------------- /src/frontend/src/hack/simpleResponse.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/hack/simpleResponse.tsx -------------------------------------------------------------------------------- /src/frontend/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/index.css -------------------------------------------------------------------------------- /src/frontend/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/index.tsx -------------------------------------------------------------------------------- /src/frontend/src/pages/NoPage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/pages/NoPage.tsx -------------------------------------------------------------------------------- /src/frontend/src/pages/chat/Chat original.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/pages/chat/Chat original.tsx -------------------------------------------------------------------------------- /src/frontend/src/pages/chat/Chat.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/pages/chat/Chat.module.css -------------------------------------------------------------------------------- /src/frontend/src/pages/chat/Chat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/pages/chat/Chat.tsx -------------------------------------------------------------------------------- /src/frontend/src/pages/layout/Layout.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/pages/layout/Layout.module.css -------------------------------------------------------------------------------- /src/frontend/src/pages/layout/Layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/src/pages/layout/Layout.tsx -------------------------------------------------------------------------------- /src/frontend/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /src/frontend/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/tsconfig.json -------------------------------------------------------------------------------- /src/frontend/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/graphrag-legalcases-postgres/HEAD/src/frontend/vite.config.ts --------------------------------------------------------------------------------