hello-yaaash25 commited on
Commit
9da81ea
·
1 Parent(s): 29c4d1d

Refactor README.md to update project details and enhance clarity

Browse files
Files changed (2) hide show
  1. .huggingface/Readme.md +0 -38
  2. README.md +47 -66
.huggingface/Readme.md DELETED
@@ -1,38 +0,0 @@
1
- # Zenith - AI Assistant
2
-
3
- ## Overview
4
- Zenith is an advanced conversational AI assistant built with state-of-the-art language models and a modern tech stack. This application leverages the power of LLMs through various integrations to provide intelligent responses, document analysis, and conversational capabilities.
5
-
6
- ## Features
7
- - **Interactive Chat Interface**: Engage with AI models through a responsive chat UI
8
- - **Document Processing**: Upload and analyze documents for information extraction
9
- - **Multiple Model Support**: Compatible with various LLM providers (OpenAI, Anthropic, etc.)
10
- - **Context Awareness**: Maintains conversation history for contextual responses
11
-
12
- ## Technologies
13
- - **Framework**: Chainlit, FastAPI
14
- - **AI/ML**: LangChain, Transformers, PyTorch
15
- - **Data Processing**: Pandas, NumPy, scikit-learn
16
- - **Document Handling**: PyPDF, Beautiful Soup
17
-
18
- ## Usage
19
- 1. Type your questions or requests in the chat interface
20
- 2. Upload documents for analysis when needed
21
- 3. Use the available tools and features as indicated in the UI
22
-
23
- ## Configuration
24
- The application uses environment variables for configuration. The following can be set in your Hugging Face Space settings under the "Secrets" tab:
25
- - `OPENAI_API_KEY` - Your OpenAI API key
26
- - `ANTHROPIC_API_KEY` - Your Anthropic API key (if using Claude)
27
- - Other API keys as needed for your specific implementation
28
-
29
- ## Deployment
30
- This application is deployed on Hugging Face Spaces, providing a scalable and accessible platform for users to interact with the AI assistant without any setup requirements.
31
-
32
- ## Limitations
33
- - Processing time may vary based on server load
34
- - File size limitations apply to document uploads
35
- - Response quality depends on the underlying AI models
36
-
37
- ## Feedback
38
- If you encounter any issues or have suggestions for improvements, please leave a comment on this Space or open an issue in the project repository.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -1,68 +1,49 @@
1
- # Chainlit Application
2
-
3
- This project is a Chainlit application designed to facilitate interactions with a custom language model for question answering and document retrieval.
4
-
5
- ## Project Structure
6
-
7
- - **src/**: Contains the main application code.
8
- - **main.py**: Entry point of the application.
9
- - **llm/**: Contains custom language model implementations and prompt templates.
10
- - **custom_llm.py**: Defines the `CustomLLM` class for API interactions.
11
- - **prompt_templates.py**: Manages prompt templates for generating queries.
12
- - **document_processing/**: Handles document loading and chunking.
13
- - **chunking.py**: Functions for chunking documents.
14
- - **loader.py**: Loads documents from various sources.
15
- - **vectorstore/**: Contains functions for generating embeddings.
16
- - **embeddings.py**: Functions for creating text embeddings.
17
- - **chains/**: Implements the logic for question answering and retrieval.
18
- - **qa_chain.py**: Integrates language model and document retrieval.
19
- - **retrieval.py**: Functions for retrieving relevant documents.
20
- - **utils/**: Utility functions for various tasks.
21
- - **helpers.py**: Includes logging and data formatting functions.
22
-
23
- - **config/**: Configuration settings for the application.
24
- - **settings.py**: Contains API keys and environment variables.
25
-
26
- - **data/**: Documentation about the data used in the application.
27
- - **README.md**: Information on data formats and sources.
28
-
29
- - **vectorstores/**: Documentation about vector stores.
30
- - **README.md**: Setup and usage instructions for vector stores.
31
-
32
- - **requirements.txt**: Lists dependencies required for the project.
33
-
34
- - **chainlit.md**: Documentation specific to the Chainlit framework.
35
-
36
- - **.env**: Stores environment variables for sensitive information.
37
-
38
- ## Setup Instructions
39
-
40
- 1. Clone the repository:
41
- ```
42
- git clone <repository-url>
43
- cd chainlit-app
44
- ```
45
-
46
- 2. Install the required dependencies:
47
- ```
48
- pip install -r requirements.txt
49
- ```
50
-
51
- 3. Set up environment variables in the `.env` file.
52
-
53
- 4. Run the application:
54
- ```
55
- chainlit run main.py
56
- ```
57
 
58
  ## Usage
59
-
60
- Once the application is running, you can interact with the language model through the Chainlit interface. Submit your queries, and the model will provide responses based on the loaded documents and embeddings.
61
-
62
- ## Contribution Guidelines
63
-
64
- Contributions are welcome! Please fork the repository and submit a pull request with your changes. Ensure that your code adheres to the project's coding standards and includes appropriate tests.
65
-
66
- ## License
67
-
68
- This project is licensed under the MIT License. See the LICENSE file for details.
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Zenith
3
+ emoji: 🚀
4
+ colorFrom: blue
5
+ colorTo: purple
6
+ sdk: docker
7
+ sdk_version: "latest"
8
+ app_file: main.py
9
+ pinned: false
10
+ ---
11
+
12
+ # Zenith - AI Assistant
13
+
14
+ ## Overview
15
+ Zenith is an advanced conversational AI assistant built with state-of-the-art language models and a modern tech stack. This application leverages the power of LLMs through various integrations to provide intelligent responses, document analysis, and conversational capabilities.
16
+
17
+ ## Features
18
+ - **Interactive Chat Interface**: Engage with AI models through a responsive chat UI
19
+ - **Document Processing**: Upload and analyze documents for information extraction
20
+ - **Multiple Model Support**: Compatible with various LLM providers (OpenAI, Anthropic, etc.)
21
+ - **Context Awareness**: Maintains conversation history for contextual responses
22
+
23
+ ## Technologies
24
+ - **Framework**: Chainlit, FastAPI
25
+ - **AI/ML**: LangChain, Transformers, PyTorch
26
+ - **Data Processing**: Pandas, NumPy, scikit-learn
27
+ - **Document Handling**: PyPDF, Beautiful Soup
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  ## Usage
30
+ 1. Type your questions or requests in the chat interface
31
+ 2. Upload documents for analysis when needed
32
+ 3. Use the available tools and features as indicated in the UI
33
+
34
+ ## Configuration
35
+ The application uses environment variables for configuration. The following can be set in your Hugging Face Space settings under the "Secrets" tab:
36
+ - `OPENAI_API_KEY` - Your OpenAI API key
37
+ - `ANTHROPIC_API_KEY` - Your Anthropic API key (if using Claude)
38
+ - Other API keys as needed for your specific implementation
39
+
40
+ ## Deployment
41
+ This application is deployed on Hugging Face Spaces, providing a scalable and accessible platform for users to interact with the AI assistant without any setup requirements.
42
+
43
+ ## Limitations
44
+ - Processing time may vary based on server load
45
+ - File size limitations apply to document uploads
46
+ - Response quality depends on the underlying AI models
47
+
48
+ ## Feedback
49
+ If you encounter any issues or have suggestions for improvements, please leave a comment on this Space or open an issue in the project repository.