avfranco commited on
Commit
ecd93a6
·
1 Parent(s): d456777

ea4allAI-problem-first-ai-capstone-demo-live

Browse files
Files changed (5) hide show
  1. Dockerfile +2 -6
  2. Dockerfile copy +0 -34
  3. README.md +35 -87
  4. live.md +0 -134
  5. requirements.txt +35 -19
Dockerfile CHANGED
@@ -20,10 +20,6 @@ RUN --mount=type=secret,id=LANGCHAIN_API_KEY,mode=0444,required=true
20
  # HF private spaces token access
21
  RUN --mount=type=secret,id=HUGGINGFACEHUB_API_TOKEN,mode=0444,required=true \
22
  cat /run/secrets/HUGGINGFACEHUB_API_TOKEN > /home/user/cli_token
23
- # Azure BING Search AI API
24
- RUN --mount=type=secret,id=BING_SUBSCRIPTION_KEY,mode=0444,required=true
25
- # CONFLUENCE API KEY
26
- RUN --mount=type=secret,id=CONFLUENCE_API_KEY,mode=0444,required=true
27
  # GOOGLE GEMINI API KEY
28
  RUN --mount=type=secret,id=GEMINI_API_KEY,mode=0444,required=true
29
  # LANGSMITH API KEY
@@ -45,8 +41,8 @@ RUN hf auth login --token $(cat ${HOME}/cli_token) --add-to-git-credential
45
  COPY --chown=user . $HOME
46
 
47
  # Clone and run ea4all-agentic-system
48
- RUN git clone https://avfranco:$(cat cli_token)@huggingface.co/spaces/avfranco/ea4all_agentic_live
49
- WORKDIR ${HOME}/ea4all_agentic_live
50
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
51
 
52
  # Install graphviz dependency
 
20
  # HF private spaces token access
21
  RUN --mount=type=secret,id=HUGGINGFACEHUB_API_TOKEN,mode=0444,required=true \
22
  cat /run/secrets/HUGGINGFACEHUB_API_TOKEN > /home/user/cli_token
 
 
 
 
23
  # GOOGLE GEMINI API KEY
24
  RUN --mount=type=secret,id=GEMINI_API_KEY,mode=0444,required=true
25
  # LANGSMITH API KEY
 
41
  COPY --chown=user . $HOME
42
 
43
  # Clone and run ea4all-agentic-system
44
+ RUN git clone https://avfranco:$(cat cli_token)@huggingface.co/spaces/avfranco/problem-first-ai-capstone
45
+ WORKDIR ${HOME}/ea4all_pfai_demo
46
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
47
 
48
  # Install graphviz dependency
Dockerfile copy DELETED
@@ -1,34 +0,0 @@
1
- FROM python:3.11.3
2
-
3
- # Set up a new user named "user" with user ID 1000
4
- RUN useradd -m -u 1000 user
5
-
6
- # Switch to the "user" user
7
- USER user
8
-
9
- # Set home to the user's home directory
10
- ENV HOME=/home/user \
11
- PATH=/home/user/.local/bin:$PATH
12
-
13
- # Set the working directory to the user's home directory
14
- WORKDIR $HOME
15
-
16
- # Get secret OPENAI_API_KEY and clone it as repo at buildtime / changed required to true
17
- RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true
18
- RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
19
- cat /run/secrets/HF_TOKEN > /home/user/cli_token
20
-
21
- RUN pip install -U "huggingface_hub[cli]"
22
- RUN git init & git config --global credential.helper store
23
- RUN huggingface-cli login --token $(cat /home/user/cli_token) --add-to-git-credential
24
-
25
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
26
- COPY --chown=user . $HOME
27
-
28
- # Clone and run ea4all-agent
29
- RUN git clone https://avfranco:$(cat cli_token)@huggingface.co/spaces/avfranco/ea4all-agent
30
- WORKDIR /home/user/ea4all-agent
31
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
32
-
33
-
34
- CMD ["python","app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -1,48 +1,53 @@
1
  ---
2
- title: Talk to your Architecture Agentic Workforce
3
  emoji: 👁
4
- colorFrom: purple
5
  colorTo: green
6
- sdk: docker
 
 
7
  pinned: false
8
  license: apache-2.0
9
- python_version: 3.12.10
10
- thumbnail: >-
11
- https://cdn-uploads.huggingface.co/production/uploads/63601a6488e41d249eccb69e/8-pNAGmJNXRUp9Mwu_ab6.png
12
- short_description: Harness the value of Architecture in the Generative AI era.
 
 
13
  ---
14
 
15
  ## Title
16
 
17
- Empower people with ability to harness the value of Enterprise Architecture with Generative AI to positively impact individuals and organisations.\n
18
 
19
- ## Problem to solve
20
 
21
- Enterprise Architecture teams struggle with limited resources, fragmented processes, and poor collaboration between business and technology. They remain reactive and slow to adapt, hindered by manual work, knowledge silos, and a steep learning curve.
22
 
 
23
 
24
- - `Lack of shared` understanding between business and technology stakeholders.
25
- - `Slow, manual, and fragmented` architecture documentation processes.
26
- - `Inability to quickly` adapt architecture to strategic or market changes.
27
- - `Limited collaboration` and accessibility of architectural knowledge.
28
- - `Steep learning` curve and delayed exposure to proven design patterns.
29
- - Architecture teams `constrained` by Enterprise Technology budget (small teams)
30
- - `Project oriented` and `reactive` architecture teams
31
 
 
32
 
33
- ## Architect Agentic Companion
 
 
34
 
35
- ![Agent System Container](ea4all/images/ea4all_architecture.png)
36
 
37
- ## Background
38
 
39
- - `Trigger`: How disruptive may Generative AI be for Enterprise Architecture Capability (People, Process and Tools)?
40
- - `Motivation`: Master GenAI while disrupting Enterprise Architecture to empower individuals and organisations with ability to harness EA value and make people lives better, safer and more efficient.
41
- - `Ability`: Exploit my carrer background and skillset across system development, business accumen, innovation and architecture to accelerate GenAI exploration while learning new things.
 
 
 
 
42
 
43
- > That's how the `EA4ALL-Agentic system` was born and ever since continuously evolving to build an ecosystem of **Architects Agent partners**.
44
 
45
- ## Benefits
46
 
47
  - `Empower individuals with Knowledge`: understand and talk about Business and Technology strategy, IT landscape, Architectue Artefacts in a single click of button.
48
  - `Accelerate learning`: gain quick access to new architectures design, patterns, and best-practices.
@@ -54,8 +59,6 @@ Enterprise Architecture teams struggle with limited resources, fragmented proces
54
  - `Resilience`: assess solution are secured by design, poses any risk and how to mitigate, apply best-practices.
55
  - `Streamline`: the process of managing and utilising architectural knowledge and tools in a user-friendly way.
56
 
57
- ## Knowledge context
58
-
59
  Synthetic datasets are used to exemplify the Agentic System capabilities.
60
 
61
  ### IT Landscape Question and Answering
@@ -70,29 +73,16 @@ Synthetic datasets are used to exemplify the Agentic System capabilities.
70
  - Business capability
71
  - Business domain
72
  - Description
73
-
74
- - Bring Your Own Data: upload your own IT landscape data
75
- - Application Portfolio Management
76
- - xlsx tabular format
77
- - first row (header) with fields name (colums)
78
-
79
  ### Architecture Diagram Visual Question and Answering
80
 
81
  - Architecture Visual Artefacts
82
  - jpeg, png
83
 
84
  **Disclaimer**
85
- - Your data & image are not accessible or shared with anyone else nor used for training purpose.
86
- - EA4ALL-VQA Agent should be used ONLY FOR Architecture Diagram images.
87
- - This feature should NOT BE USED to process inappropriate content.
88
-
89
- ### Reference Architecture Generation
90
-
91
- - Clock in/out Use-case
92
-
93
- ### Architecture Demand Management
94
-
95
- - Provide project resource estimation for architecture work based on business requirements, skillset, architects allocation, and any other relevant information to enable successful project solution delivery.
96
 
97
  ### AWS & Microsoft Official Documentation Question and Answering
98
 
@@ -102,47 +92,5 @@ Synthetic datasets are used to exemplify the Agentic System capabilities.
102
 
103
  For purpose of continuous improvement, agentic workflows are logged in.
104
 
105
- ## Architecture
106
-
107
- <italic>Core architecture built upon Python, Langchain, Langgraph, Langsmith, and Gradio.<italic>
108
-
109
- - Python
110
- - Pandas
111
- - Langchain
112
- - Langgraph
113
- - Huggingface
114
- - CrewAI
115
-
116
- - RAG (Retrieval Augmented Generation)
117
- - Vectorstore
118
-
119
- - Prompt Engineering
120
- - Strategy & tactics: Task / Sub-tasks
121
- - Agentic Workflow
122
-
123
- - Models:
124
- - OpenAI
125
- - Meta/Llama
126
- - Google Gemini
127
-
128
- - Hierarchical-Agent-Teams:
129
- - Tabular-question-answering over your own document
130
- - Supervisor
131
- - Visual Questions Answering
132
- - Diagram Component Analysis
133
- - Risk & Vulnerability and Mitigation options
134
- - Well-Architecture Design Assessment
135
- - Vision and Target Architecture
136
- - Architect Demand Management
137
- - AWS & Microsoft Official Documentation
138
-
139
- - User Interface
140
- - Gradio
141
-
142
- - Observability & Evaluation
143
- - Langsmith
144
-
145
- - Hosting
146
- - Huggingface Space
147
-
148
  Check out the configuration reference at [spaces-config-reference](https://huggingface.co/docs/hub/spaces-config-reference)
 
1
  ---
2
+ title: ae4all.ai-agentic-workforce
3
  emoji: 👁
4
+ colorFrom: green
5
  colorTo: green
6
+ sdk: gradio
7
+ sdk_version: 5.44.1
8
+ app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
+ python_version: 3.12.11
12
+ hf_oauth: true
13
+ hf_oauth_scopes:
14
+ - email
15
+ - read-billing
16
+ - read-repos
17
  ---
18
 
19
  ## Title
20
 
21
+ Empower people with ability to harness the value of Enterprise Architecture with Generative AI to positively impact individuals and organisations.
22
 
23
+ ## Agentic Workforce Architecture
24
 
25
+ ![Iteration-1](ea4all/images/ea4allAI-capstone-iter-1a.png)
26
 
27
+ ![Iteration-1](ea4all/images/ea4allAI-capstone-iter-2a.png)
28
 
29
+ ![Iteration-1](ea4all/images/ea4allAI-capstone-iter-3a.png)
 
 
 
 
 
 
30
 
31
+ ## Use Case
32
 
33
+ - `Trigger`: React -> Anticipate. Follow -> Lead. Doors to open -> Build new Doors
34
+ - `Motivation`: How disruptive may Generative AI be for Enterprise Architecture Capability (People, Process and Tools)?
35
+ - `Ability`: Exploit my carrer background and skillset across system development, business accumen, innovation and architecture to accelerate GenAI exploration while learning new things.
36
 
37
+ ## Problem Statement
38
 
39
+ Enterprise Architecture teams struggle with limited resources, fragmented processes, and poor collaboration between business and technology. They remain reactive and slow to adapt, hindered by manual work, knowledge silos, and a steep learning curve.
40
 
41
+ - Lack of shared understanding between business and technology stakeholders.
42
+ - Slow, manual, and fragmented architecture documentation processes.
43
+ - Inability to quickly adapt architecture to strategic or market changes.
44
+ - Limited collaboration and accessibility of architectural knowledge.
45
+ - Steep learning curve and delayed exposure to proven design patterns.
46
+ - Architecture teams constrained by Enterprise Technology budget (small teams)
47
+ - Project oriented and reactive architecture teams
48
 
 
49
 
50
+ ## Why is this problem important and relevant today?
51
 
52
  - `Empower individuals with Knowledge`: understand and talk about Business and Technology strategy, IT landscape, Architectue Artefacts in a single click of button.
53
  - `Accelerate learning`: gain quick access to new architectures design, patterns, and best-practices.
 
59
  - `Resilience`: assess solution are secured by design, poses any risk and how to mitigate, apply best-practices.
60
  - `Streamline`: the process of managing and utilising architectural knowledge and tools in a user-friendly way.
61
 
 
 
62
  Synthetic datasets are used to exemplify the Agentic System capabilities.
63
 
64
  ### IT Landscape Question and Answering
 
73
  - Business capability
74
  - Business domain
75
  - Description
76
+
 
 
 
 
 
77
  ### Architecture Diagram Visual Question and Answering
78
 
79
  - Architecture Visual Artefacts
80
  - jpeg, png
81
 
82
  **Disclaimer**
83
+ - Your data & image are not accessible or shared with anyone else nor used for training purpose.
84
+ - EA4ALL-VQA Agent should be used ONLY FOR Architecture Diagram images.
85
+ - This feature should NOT BE USED to process inappropriate content.
 
 
 
 
 
 
 
 
86
 
87
  ### AWS & Microsoft Official Documentation Question and Answering
88
 
 
92
 
93
  For purpose of continuous improvement, agentic workflows are logged in.
94
 
95
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  Check out the configuration reference at [spaces-config-reference](https://huggingface.co/docs/hub/spaces-config-reference)
live.md DELETED
@@ -1,134 +0,0 @@
1
- ---
2
- title: Talk to your Multi-Agentic Architect Companion
3
- emoji: 👁
4
- colorFrom: purple
5
- colorTo: green
6
- sdk: docker
7
- pinned: false
8
- license: apache-2.0
9
- python_version: 3.12.10
10
- thumbnail: >-
11
- https://cdn-uploads.huggingface.co/production/uploads/63601a6488e41d249eccb69e/8-pNAGmJNXRUp9Mwu_ab6.png
12
- short_description: Harness the value of Architecture in the Generative AI era.
13
- ---
14
-
15
- ## Title
16
-
17
- Empower people with ability to harness the value of Enterprise Architecture with Generative AI to positively impact individuals and organisations.\n
18
-
19
- ## Architect Agentic Companion
20
-
21
- ![Agent System Container](ea4all/images/ea4all_architecture.png)
22
-
23
- ## Background
24
-
25
- - `Trigger`: How disruptive may Generative AI be for Enterprise Architecture Capability (People, Process and Tools)?
26
- - `Motivation`: Master GenAI while disrupting Enterprise Architecture to empower individuals and organisations with ability to harness EA value and make people lives better, safer and more efficient.
27
- - `Ability`: Exploit my carrer background and skillset across system development, business accumen, innovation and architecture to accelerate GenAI exploration while learning new things.
28
-
29
- > That's how the `EA4ALL-Agentic system` was born and ever since continuously evolving to build an ecosystem of **Architects Agent partners**.
30
-
31
- ## Benefits
32
-
33
- - `Empower individuals with Knowledge`: understand and talk about Business and Technology strategy, IT landscape, Architectue Artefacts in a single click of button.
34
- - `Accelerate learning`: gain quick access to new architectures design, patterns, and best-practices.
35
- - `Increase efficiency and productivity`: generate a documented architecture with diagram, model and descriptions. Accelerate Business Requirement identification and translation to Target Reference Architecture. Automated steps and reduced times for task execution.
36
- - `Improve agility`: plan, execute, review and iterate over EA inputs and outputs. Increase the ability to adapt, transform and execute at pace and scale in response to changes in strategy, threats and opportunities.
37
- - `Increase collaboration`: democratise architecture work and knowledge with anyone using natural language.
38
- - `Cost optimisation`: intelligent allocation of architects time for valuable business tasks.
39
- - `Business Growth`: create / re-use of (new) products and services, and people experience enhancements.
40
- - `Resilience`: assess solution are secured by design, poses any risk and how to mitigate, apply best-practices.
41
- - `Streamline`: the process of managing and utilising architectural knowledge and tools in a user-friendly way.
42
-
43
- ## Knowledge context
44
-
45
- Synthetic datasets are used to exemplify the Agentic System capabilities.
46
-
47
- ### IT Landscape Question and Answering
48
-
49
- - Application name
50
- - Business fit: appropriate, inadequate, perfect
51
- - Technical fit: adequate, insufficient, perfect
52
- - Business_criticality: operational, medium, high, critical
53
- - Roadmap: maintain, invest, divers
54
- - Architect responsible
55
- - Hosting: user device, on-premise, IaaS, SaaS
56
- - Business capability
57
- - Business domain
58
- - Description
59
-
60
- - Bring Your Own Data: upload your own IT landscape data
61
- - Application Portfolio Management
62
- - xlsx tabular format
63
- - first row (header) with fields name (colums)
64
-
65
- ### Architecture Diagram Visual Question and Answering
66
-
67
- - Architecture Visual Artefacts
68
- - jpeg, png
69
-
70
- **Disclaimer**
71
- - Your data & image are not accessible or shared with anyone else nor used for training purpose.
72
- - EA4ALL-VQA Agent should be used ONLY FOR Architecture Diagram images.
73
- - This feature should NOT BE USED to process inappropriate content.
74
-
75
- ### Reference Architecture Generation
76
-
77
- - Clock in/out Use-case
78
-
79
- ### Architecture Demand Management
80
-
81
- - Provide project resource estimation for architecture work based on business requirements, skillset, architects allocation, and any other relevant information to enable successful project solution delivery.
82
-
83
- ### AWS & Microsoft Official Documentation Question and Answering
84
-
85
- - Access to official documentation and diagram generation for AWS services. MCP service-based.
86
-
87
- ## Log / Traceability
88
-
89
- For purpose of continuous improvement, agentic workflows are logged in.
90
-
91
- ## Architecture
92
-
93
- <italic>Core architecture built upon Python, Langchain, Langgraph, Langsmith, and Gradio.<italic>
94
-
95
- - Python
96
- - Pandas
97
- - Langchain
98
- - Langgraph
99
- - Huggingface
100
- - CrewAI
101
-
102
- - RAG (Retrieval Augmented Generation)
103
- - Vectorstore
104
-
105
- - Prompt Engineering
106
- - Strategy & tactics: Task / Sub-tasks
107
- - Agentic Workflow
108
-
109
- - Models:
110
- - OpenAI
111
- - Meta/Llama
112
- - Google Gemini
113
-
114
- - Hierarchical-Agent-Teams:
115
- - Tabular-question-answering over your own document
116
- - Supervisor
117
- - Visual Questions Answering
118
- - Diagram Component Analysis
119
- - Risk & Vulnerability and Mitigation options
120
- - Well-Architecture Design Assessment
121
- - Vision and Target Architecture
122
- - Architect Demand Management
123
- - AWS & Microsoft Official Documentation
124
-
125
- - User Interface
126
- - Gradio
127
-
128
- - Observability & Evaluation
129
- - Langsmith
130
-
131
- - Hosting
132
- - Huggingface Space
133
-
134
- Check out the configuration reference at [spaces-config-reference](https://huggingface.co/docs/hub/spaces-config-reference)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
requirements.txt CHANGED
@@ -7,30 +7,46 @@ fastapi
7
  ffmpy==0.6.1
8
  google-ai-generativelanguage==0.6.17
9
  google-api-core==2.24.2
10
- gradio==5.35.0
11
  gradio-client
12
  graphviz
13
- huggingface-hub
14
- langchain
15
- langchain-community
16
- langchain-core
17
- langchain-experimental
18
- langchain-google-genai
19
- langchain-huggingface
20
- langchain-mcp-adapters==0.1.9
21
- langchain-openai
22
- langchainhub
23
- langgraph
24
- langgraph-api
25
- langgraph-runtime-inmem
26
- langgraph-sdk
27
- langsmith
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  litellm
29
  markdown
30
  markdownify
31
- mcp
32
  numpy==2.3.2
33
- openai
34
  openinference-instrumentation==0.1.29
35
  openinference-instrumentation-crewai==0.1.9
36
  openinference-instrumentation-litellm==0.1.19
@@ -56,4 +72,4 @@ pydantic
56
  sqlalchemy
57
  tiktoken
58
  tokenizers
59
- torch==2.2.2
 
7
  ffmpy==0.6.1
8
  google-ai-generativelanguage==0.6.17
9
  google-api-core==2.24.2
 
10
  gradio-client
11
  graphviz
12
+ huggingface-hub==0.36.0
13
+ google-ai-generativelanguage==0.6.17
14
+ google-auth==2.40.3
15
+ google-cloud-aiplatform==1.109.0
16
+ google-cloud-bigquery==3.35.1
17
+ google-cloud-resource-manager==1.14.2
18
+ google-cloud-storage==2.19.0
19
+ google-crc32c==1.7.1
20
+ google-genai==1.30.0
21
+ google-resumable-media==2.7.2
22
+ googleapis-common-protos==1.70.0
23
+ gradio==5.46.1
24
+ gradio-client==1.13.1
25
+ gradio[oauth]
26
+ langchain==0.3.27
27
+ langchain-community==0.3.31
28
+ langchain-core==0.3.79
29
+ langchain-google-genai==2.1.3
30
+ langchain-google-vertexai==2.0.28
31
+ langchain-mcp-adapters==0.1.12
32
+ langchain-openai==0.3.28
33
+ langchain-text-splitters==0.3.11
34
+ langchainhub==0.1.21
35
+ langgraph==0.6.6
36
+ langgraph-api==0.3.1
37
+ langgraph-checkpoint==2.1.1
38
+ langgraph-cli==0.4.7
39
+ langgraph-prebuilt==0.6.4
40
+ langgraph-runtime-inmem==0.8.1
41
+ langgraph-sdk==0.2.3
42
+ langmem==0.0.30
43
+ langsmith==0.4.41
44
  litellm
45
  markdown
46
  markdownify
47
+ mcp==1.21.0
48
  numpy==2.3.2
49
+ openai==1.109.1
50
  openinference-instrumentation==0.1.29
51
  openinference-instrumentation-crewai==0.1.9
52
  openinference-instrumentation-litellm==0.1.19
 
72
  sqlalchemy
73
  tiktoken
74
  tokenizers
75
+ torch==2.2.2